Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Populating Idoc number in Idoc header data

Harsh_Jain2512
Participant
0 Kudos

Hello everybody,

I want to know that is there any way exists by which we can fill the Idoc number generated in the IDOC itself i.e. we are generating IDOC from EDIDD and EDIDC tables and I have a requirement to populate IDOC number(which will be generated after the IDOC will be created) in one of the IDOC's segment. From my end I have no clue on this because we are trying to use the value (IDOC number) before it is being generated and hence help needed on this.

Regards,

Harsh.

5 REPLIES 5

former_member201275
Active Contributor
0 Kudos

For which message type is this?

Why do you want to do this?

0 Kudos

for message WMMBXY, actually this is a functional requirement.

pranay570708
Active Contributor
0 Kudos

Hi Harsh,

you can get your idoc number from the master_idoc_data table genretated by FM 'MASTER_IDOC_DISTRIBUTE'.

edidc-docnum is your desired thing. you can pass this field in other segment.

Regards,

Pranay

0 Kudos

Yes this FM returns idoc number. but before returning I want to use this idoc number and populate in my idoc header. Is there any way out.


0 Kudos

No Harsh, i am not aware of that. Because Idoc gets generated after this FM call only.