2011 Aug 10 5:45 AM
Hello,
I have a requirement to move value of the field from the communication structure VBAPKOM to VBAP.
I have appended both VBAPKOM and VBAP with two fields ZZSIO, ZZWERK.
In the transaction DP90 the structure VBAPKOM- the two fields mentioned above is filled.
Could you please tell me how can I update or move the value from VBAPKOM to VBAP?
Regards
Ashish
2011 Aug 10 5:54 AM
Hi,
this should be done automatically in fm SD_SALES_ITEM_MAINTAIN, if VBAPKOM fields have been filled before, e.g. in EXIT_SAPLV46H_001 .
Regards,
Klaus
2011 Aug 10 6:42 AM
Thanks for your reply. I have already tried that. VBAP is not updated.
I am passing :- C_vbapkom
CALL FUNCTION 'SD_SALES_ITEM_MAINTAIN'
EXPORTING
fvbapkom = c_vbapkom
FVBEPKOM =
FVBEPKOMX =
I_NEW_PRICING = ' '
CALL_ACTIVE = ' '
FVBAPKOMX =
I_POSNR = ' '
I_SIMULATION = ' '
LOGIC_SWITCH =
IMPORTING
EMAAPV =
EMAEPV =
EVBAP =
EVBAPKOM =
EVBKD =
TABLES
FXVBPAKOM =
FXKONVKOM =
IT_MDVU =
FXBAPIADDR1 =
FXVBEPKOM =
FXVBEPKOMX =
FXVBPA3KOM =
.
2011 Aug 11 5:47 AM
Hi,
in DP90 fm SD_SALES_ITEM_MAINTAIN is calles automatically.
If you call it manually, I think you have to set all FVBAPKOMX fields that should be changed to 'X'.
Regards,
Klaus
2011 Aug 11 10:05 AM
Hello,
use:-
Include FV45PFAP_VBAP_FUELLEN_VBAPKOM; Form Routine VBAP_FUELLEN_VBAPKOM.
There is an enhacement spot.
it works
Regards
Ashish
2011 Aug 10 2:01 PM
look at SD exit includes named like MV45AFZ*. While I don't remember a subroutine to move KOM to table in these, there is the SAVE_DOCUMENT_PREPARE routine...if the contents of VBAPKOM are available there, would be simple matter to copy into VBAP there....
Have you tried the MAINTAIN function module(s) with the X structures supplied? If not, SAP doesn't see a field that needs to be updated!
Edited by: DaveL on Aug 10, 2011 3:09 PM