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: 

GEnerating IDOC from ABAP Program

Former Member
0 Kudos

Hello all,

we have a business scenario where we are usng XI.

We are generating SO IDocs for the scenario. here are my Questions:

1. the SO may be a create/modify/reject

2. they have to pass several checlks like ATP, Flag check etc..(Validation) which we are handling it by a user exit, once the checks are passed we have to generate idocs..i am aware that we do output determination to generte the IDOC but we are opting that.we are trung to generate the idoc thru a z-program. can anybody guide me whether we can generate an idoc thru a z-program, if so can someone provide with a sample code/steps to be followed.

Also can a BAPI generate an IDOC?

1 REPLY 1

abdul_hakim
Active Contributor
0 Kudos

hi aarthi,

not only in your below scenario,for anycase we need a program to generate IDOC for eg MASTER_IDOC_DISTRIBUTE..

the best advice is to copy an existing inbound/outbound programs and modify it to your need.this what SAP is also suggesting...

Cheeers,

Abdul Hakim