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: 

Alternative to SPA/GPA

Former Member
0 Kudos
80

Hi Friends,

Is there any other way other than Parameter ID to get the document number of a document created through call transaction from within a method?

Thanks in advance.

Nathan.

4 REPLIES 4

Former Member
0 Kudos
54

if its a call transaction. Is the invoice number output as part of the messages returned back from the call transaction.

0 Kudos
54

Hi,

I am not doing a BDC here. Its a plain CALL TRANSACTION statement.

Thanks,

Nathan.

former_member194669
Active Contributor
0 Kudos
54

Hi,

Can you try with export/import statements to get document number inside a method?

Thanks

aRs

Former Member
0 Kudos
54

Hi Nathan,

You can do the coding to acheive the output.

*& Execute CALL Transaction.
  CALL TRANSACTION 'QM01' USING BDCDATA1
                       MODE   V_MODE
                       UPDATE V_UPDATE
                       MESSAGES INTO MESSTAB.

Once you get the Transaction You woould see the Table MESSTAB. contains the information. So you use this statement to get the requyired output.

*& Read the MESSTAB for getting the value of the notification number.
    READ TABLE MESSTAB WITH KEY MSGID = V_MSGID MSGNR = V_MSGNR.
    IF SY-SUBRC = 0.
      CHAR5 = MESSTAB-MSGV1.  " assign notification number to the variable char5
    ENDIF.

Reward point if helpfull*************************