Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

VBAPKOM and VBAP

former_member763498
Participant
0 Kudos
7,748

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

5 REPLIES 5

former_member195402
Active Contributor
0 Kudos
1,963

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

0 Kudos
1,963

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 =

.

0 Kudos
1,963

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

0 Kudos
1,963

Hello,

use:-

Include FV45PFAP_VBAP_FUELLEN_VBAPKOM; Form Routine VBAP_FUELLEN_VBAPKOM.

There is an enhacement spot.

it works

Regards

Ashish

Former Member
0 Kudos
1,963

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