Batch Input for Delivery
Hi all,
I have a batch input program that creates a delivery. Everything works fine... except that I cannot get the Document Number from bdcmsgcoll. I get the Message Type, Message Number but no Delivery Document Number.
A message does appear in the status area of the screen saying "497700029 has been saved". The number therfore is held somewhere.
Would anybody know how I can capture this within the batch input program.
Many thanks in advance.
regards
Stephen.
BDCMSGCOLL-MSGV1 normally has got these values. Just check the same in Debugging Mode or outputting the Log.
KRK
BDCMSGCOLL-MSGV1 normally has got these values. Just check the same in Debugging Mode or outputting the Log.
KRK
Thanks Kumar,
as I said , the Document Number is not in the BDCMSGCOLL in any of the MSGV fields of the structure. The document number is presented to the user as a message.....
MESSAGE S311 WITH TVLKT-VTEXT XLIKP-VBELN.
XLIKP-VBELN is the Document Number.
Yes, I've run into the similar problem. Try to use 'OPTIONS FROM opt' addition of CALL TRANSACTION. Fill opt-NOBINPT with 'X'. Maybe it'll help. I my case I had to use USER_EXIT and export new doc number into ABAP-memory, as opt-NOBINPT = 'X' changed on-screen field availability.
_________________
Best regards, Sergey Korolev
Hi,
I had a similar problem in Order Entry VA01. I did the following:
If the Call transaction worked OK, then get parameter ID to retrieve the document number.
Hope it helps
Just check BDCMSGCOLL-MSGV2 and if it is still blank. Do the following
SET PARAMETER ID 'VL' FIELD SPACE.
*Fill your BDC TABLE
CALL TRANSACTION 'VL01' .....
IF SY-SUBRC = 0.
GET PARAMETER ID 'VL' FIELD XYZ.
ENDIF.
Hi,
I had a similar problem in Order Entry VA01. I did the following:
If the Call transaction worked OK, then get parameter ID to retrieve the document number.
Hope it helps
Setting Parameter ID SPACE is for being safe.
KRK
Eddie, Kumar,
Thanks a million lads, works perfectly. Much appreciated.
regards
Stephen.
It will work perfectly unless you run the program simultaneously in more than one mode of one user session, as parameter id is a global variable for a single terminal session. See this excerpt from the documentation: 'Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.'
So, be carefull.
_________________
Best regards, Sergey Korolev