Skip to Content

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.

Idoc2 doubt.JPG (56.7 kB)
Idoc2 doubt1.JPG (78.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 24, 2014 at 05:14 AM

    Hi Sudhir,

    Please elaborate on which IDOC and message type you are working on and the IDOC is used in which process. Also the customer exit details that is being used.

    Regards,

    Aashika

    Add comment
    10|10000 characters needed characters exceeded

    • Can you elaborate more. Where should i change my code. 

      My requirement is use to get all the standard segments and my custom segment should trigger once.

      But where ever i'm adding Zsegments, its triggering multiple times.

      Kindly let me know ASAP.

      With Regards,

      Sudhir.

  • Dec 24, 2014 at 06:54 AM

    Hi Sudhir,

    As per my understanding from the above discussion, I found that, you are not able to retrieve the value Document number(VBELN). I hope in such case, we can fetch the value using screen name inside the exit using the below code. Change the code as per the screen element name.

    FIELD-SYMBOLS <FS_POSNR> LIKE /DBM/VBAP-POSNR. "Position Number

    "Screen Name

    CONSTANTS: LV_ITEM_NO TYPE CHAR40 VALUE '(/DBM/SAPLORDER_UI)/DBM/S_POS-POSNR'.     "Item Number

    "Assign the Item number value

    ASSIGN (LV_ITEM_NO) TO <FS_POSNR>.

    "Check whether Postion number is available

    IF <FS_POSNR> IS ASSIGNED.

       L_POSNR = <FS_POSNR>.     "Postion Number

    ENDIF.

    Hope it helps to you.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded