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: 

Move VBAP-PS_PSP_PNR number to DXVBAP in EXITS

Former Member
0 Kudos

HI Experts,

I have to use "EXIT'_SAPLVEDA_001" for FM " IDOC_INBOUND_ORDERS"

to enhance the inbound idoc , Here i need to pass the PS_PSP_PNR number from VBAP table to DXVBAP parameter which available in Exits " "EXIT'_SAPLVEDA_001". That PS_PSP_PNR number already available in Inbound IDOC under E1EDP02 Segment but the DXVBAP parameter in Exit does not refer to any Associated type

In this case How can i move the PS_PSP_PNR number to that DXVBAP.

Thanks in Advance

1 REPLY 1

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
INCLUDE LVEDACOM.

DATA: lt_xvbap LIKE STANDARD TABLE OF xvbap.

lt_xvbap[] = dxvbap[].

Then you should be able to access the PS_PSP_PNR field while processing the internal table lt_xvbap.

Or, another way would be:

INCLUDE LVEDACOM.

FIELD-SYMBOLS: <xvbap> LIKE xvbap.

LOOP AT dxvbap assigning <xvbap>.

  "here you have access to <xvbap>-PS_PSP_PNR.

ENDLOOP.