Application Development and Automation 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: 
Read only

BAPI_BUS20350_CREATE

Former Member
0 Likes
679

Hi,

I am trying to create a new audit from an existing one using BAPI_BUS20350_CREATE where the Planned Start Date of the new audit will be the Next Audit Date of the existing one.

I can obtain the details of the existing audit using BAPI_BUS20350_GET_DETAIL but I do not know how to populate some of the fields in the BAPI to create the new one. For instance, what do I put in the field guid - or do I leave this blank?

Our Audits are not linked to an Audit Plan.

Can anyone send me an example of how to do this please? I have trawled many forums for some sample code but have so far been unsuccessful.

Hoping you can help,

Jan

2 REPLIES 2
Read only

former_member222709
Contributor
0 Likes
554

Hi,

The list of required fields will have to identified manually with reference to the transaction done for which the BAPI is being used.

Specifically to the field GUID, it is an identifier used when your system is integrated with CRM, the CRM systems generates the unique identifier for the BAPI.

I can recommend you to pass parameters known to you and execute the BAPI. The BAPI is a stable code and will give specific errors about missing data and hence can be used in the code easily.

Regards,

Prnav.

Read only

0 Likes
554

Hi Pranav,

Thanks for your reply.

It was very helpful. I decided to populate only a few fields as suggested and leave the guid blank. I didn't try to add texts or questions at this point and it seems to have created an audit.

So, I can now try adding texts and question lists.

One step at a time!!

Jan