2007 Mar 05 3:45 PM
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.
2007 Mar 05 4:01 PM
if its a call transaction. Is the invoice number output as part of the messages returned back from the call transaction.
2007 Mar 05 4:05 PM
Hi,
I am not doing a BDC here. Its a plain CALL TRANSACTION statement.
Thanks,
Nathan.
2007 Mar 05 4:02 PM
Hi,
Can you try with export/import statements to get document number inside a method?
Thanks
aRs
2007 Mar 05 4:17 PM
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*************************