Batch Input for Delivery

Question:
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.
Answer:
BDCMSGCOLL-MSGV1 normally has got these values. Just check the same in Debugging Mode or outputting the Log.
KRK
Answer:
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.
Answer:
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
Answer:
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
Answer:
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
Answer:
Eddie, Kumar,
Thanks a million lads, works perfectly. Much appreciated.
regards
Stephen.
Answer:
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

More Articles:

comparing 2 internal tables?
Barcode print to the normail printer from SAP?
screen elements group!!?
Anybody ever done a BDC to Upload Open Contracts v4.6 or 7?
Articles016570.html?
Difference between structure and table?