The program create acount document using BDC--display_mode = 'A'.
After user input all the required fields and create a new document,
program gets the new document and updates local database table.
below is the original method of getting the document:
LOOP AT ITAB WHERE MSGTYP = 'S' AND MSGV1 <> ''.
check itab-msgv1+0(1) = '5'.
lc_msgv1 = itab-MSGV1+0(10).
ENDLOOP.
But it often fails to get the document number which has been created.
Finnaly we use this method:
GET PARAMETER ID 'RBN' FIELD lepid.
阅读(282) | 评论(0) | 转发(0) |