Solution : https://service.sap.com/sap/support/notes/841003 (SAP Service marketplace login required)
Key words :
call function 'sd_vbap_get_account_assignment' exporting i_vbeln = xvbap-vbeln i_posnr = xvbap-posnr importing e_paobjnr = paobjnr_ae e_cobl_rec_obj = accass exceptions record_not_found = 1, yvbap-posnv eq yvbap-posnr, yvbap-vbelv eq yvbap-vbeln, key vbeln = s_vbeln posnr = s_posnr, yvbap-posnv ne yvbap-posnr, yvbap-vbelv ne yvbap-vbeln, real account assignment perform realaccountassignment, account assignment data perform accountassignment_check, account assignment + ++++++++++++++++++++++++++++++++++++++++++++++++++++form accountassignment_check, read table xvbap index 1
Related Notes :
841004 | Toolbox for analysis and correction |