Quantcast
Viewing all articles
Browse latest Browse all 8533

Re: Sample code required ...

Hello MM,

 

create a varible for LIFEX as V_LIFEX

 

Use Table VBFA and VBTYP_N as J for Delivery and VBTYP_N as M for Invoice

 

select sales order number using Invoice number and pass sales order number to get the delivery number.

 

Data : V_LIFEX type LIKP-LIFEX  " external identification number

          V_VBELN type vbfa-vbeln " sales order

         V_VBELV type VBFA-VBELV " delivery number

 

select single Vbeln from  VBFA into V_VBELN where VBELV = invoice number and VBTYP_N = 'M'.

 

select single vbelv from VBFa into V_VBELV where VBELN = V_VBELN and VBTYP_N = 'J'.

 

Select single LIFEX  from LIKP into V_LIFEX where vbeln = v_vbelv .


Viewing all articles
Browse latest Browse all 8533

Trending Articles