Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting the Delivery Document Number from the Associative type/Type group

Hi,

As I'm working on Idoc custom segments/Enhancement.

The following is the FM Exit, respective Associative Type/Type Group and Select Query that i'm using.

SELECT SINGLE VBELN LIFNR ZZASNNO ZZINVOIVE_NO ZZREASON FROM LIKP INTO LS_LIKP WHERE VBELN = likp-VBELN.


But whenever i'm getting the data from the Tcode, i'm not getting the delivery document number in my WHERE condition.

Kindly suggest me what will be the WHERE condition and its corresponding syntax.



With Regards,

Sudhir.

Former Member replied

Hi Sudhir,

Please try to get delivery number using below logic:

field-symbols: <lx_edidd> type edidd.

data: wa_e1edl20 type E1EDL20.

READ TABLE int_edidd assigning <lx_edidd> WITH KEY segnam = 'E1EDL20'.

IF <lx_edidd> IS ASSIGNED. 

wa_e1edl20 = <lx_edidd>-sdata.

ENDIF. 



The delivery number will be wa_e1edl20-vbeln, which can be used in where clause.


Regards,

Aashika

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question