Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get Idoc Number created through BD14

Hi,

I want to send some vendor details from SAP side to other system.And for that I am submitting BD14 using some vendor numberand message type cremas.

Now whenever we execute BD14 transaction with a vendor it will create one idoc number.

Now please let me know can we get this idoc number?

If i go to we02 i can see that but i want the table from where i can get this idoc number as i want show it in my final report output.

Edited by: Julius Bussche on Sep 12, 2008 4:45 PM

replied

Hi

Its very simple.

Use function module SREL_GET_NEXT_RELATIONS

where :

GWA_OBJECT-OBJKEY = VENDOR_NUMBER.
GWA_OBJECT-OBJTYPE = 'LFA1'.

CALL FUNCTION 'SREL_GET_NEXT_RELATIONS'
  EXPORTING
    OBJECT = GWA_OBJECT
  TABLES
    ROLES = GT_ROLES .

DELETE GT_ROLES WHERE OBJKEY EQ VENDOR_NUMBER AND OBJTYPE EQ 'LFA1'.

After that, you will get IDOC number in the OBJKEY field where OBJTYPE = 'IDOC'

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question