Application Development and Automation 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: 
Read only

E1EDP19 segment

Former Member
0 Likes
1,028

Hello every one

Can any one give me the code to write VBAP.PRODH field into E1EDP19 segemnt with qualifier 999 ?

I just want to populate the E1EDP19 segment's IDTNR with qualifier 999 with VBAP.PRODH data.

I knw how to write data which has exactly the same fields , but i don't know how to write the data to a particular qualifier.

I know thw user exit and function module for it . I just need hte code.

Our requirement is to make the orders.Quote idoc to have the VBAP.PRODH data in it.

Your help is appriciated.

thank you

3 REPLIES 3
Read only

ferry_lianto
Active Contributor
0 Likes
674

Hi,

I assumed you are using user exits EXIT_SAPLVEDC_002 (ZXVEDU02).

Please try this.


DATA: WA_E1EDP19 LIKE E1EDP19.
 
LOOP AT INT_EDIDD.
  CASE INT_EDIDD-SEGNAM.
    WHEN 'E1EDP19'.
      MOVE INT_EDIDD-SDATA TO  WA_E1EDP19.
      WA_E1EDP19-QUALF = '999'.
      WA_E1EDP19-IDTNR = DXVBAP-PRODH.
      MOVE WA_E1EDP19 TO INT_EDIDD-SDATA.
      APPEND INT_EDIDD.
     
    WHEN OTHERS.
  ENDCASE.    
ENDLOOP.

Regards,

Ferry Lianto

Read only

0 Likes
674

Hi Lianto

Thnaks a lot for your reply ... When i ran the syntax check on the code it says that DXVBAP... does exixt but XVBAP exists.

What should i do Change it to XVBAP or inore it

What is DXVBAP?

Thank you

Read only

Former Member
0 Likes
674

Thank you