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: 

Can we use IDOC_INPUT_<Message type> for creating and changing the document

former_member853013
Participant
0 Kudos

Hi,

I have a requirement to create or change the requisition data.

Can I use IDOC_INPUT_PREQCR01 function module for both the purpose.

OR shall I go for custom function module by using BAPI function modules to create or change the data.

Please help me in this regarding.

Answers will be rewarded.

Thank you.

Eswar

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Eswar

You could use the IDoc processing function module if you had the data already available in the IDoc specific format (which is unlikely). This would mean you are receiving the IDoc data from another SAP system.

Instead, check the BAPI explorer (transaction BAPI) if you can find an appropriate BAPI.

Regards,

Uwe

former_member589029
Active Contributor
0 Kudos

Inside of IDOC_INPUT_PREQCR1 it is calling 'BAPI_PR_CREATE' anyway hence you can use that directly. There also is a 'BAPI_PR_CHANGE'

Regards,

Michael