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: 

FM/BADI to create INFORECORD

Former Member
0 Kudos

Hi all,

I've searched a lot, but I'm unable to create an INFORECORD.

When creating a quotation, I need to check if the materials have an inforecord, if they don't have an inforecord I have to create it.

I'm using ME_PURCHDOC_POSTED badi to input my code.

How do I accomplish it?

Witch FM or BAPI do I have to use and how?

If you have some sample code, I appreciate it a lot!

Best regards,

Carlos Constantino

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

You can use this Update Function to create the Inforecord.

ME_UPDATE_INFORECORD

it is update Function , call it in Update Task.

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

You can use this Update Function to create the Inforecord.

ME_UPDATE_INFORECORD

it is update Function , call it in Update Task.

bpawanchand
Active Contributor
0 Kudos

HI

Check out this Thread

Regards

Pavan

former_member181995
Active Contributor
0 Kudos

Carlos,

To create InfoRecords use the functions :

-> ME_INITIALIZE_INFORECORD

-> ME_DIRECT_INPUT_INFORECORD

-> ME_POST_INFORECORD

Amit.

Former Member
0 Kudos

Hi Carlos,

I would like to suggest,

ME_CREATE_COND_INFOREC

INFORECORD_GETLIST - Display Purchasing Info Records

HR_ECM_CHECK_INFOTYPE_RECORD - Perform checks on compensation process infotype record data

CO_MK_IBAPI_GET_INFO_RECORD

MB_CHK_MATERIAL_FOR_INFORECORD

BAPI_INFORECORD_GETLIST - Display Purchasing Info Records

WSTN1_INFO_RECORD_BUILD - Fill data of the purchasing info records

I would also like to suggest a reference for the code,

[SDN - Standard Reference for adding inforecord price 2lis_o2_scl |;

[SAP HELP - Standard Reference for Number for purchasing info record|http://help.sap.com/saphelp_nw04/helpdata/en/7b/71d238d7554c49e10000000a11402f/content.htm]

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

0 Kudos

all of you helped! Thanks a lot!

But one final qwestion: How do I update conditions?! (or price?)?

thanks!

0 Kudos

You want it for Inforecords..?

For condtions maintenance

RV_CONDITION_SAVE
RV_CONDITION_POST

0 Kudos

yes, I need it for updating the price of the inforecord.

In order to update the price, need to insert/create a condition (at least thats the way it is made on ME11)

Former Member
0 Kudos

Hiii

Please go through the following link

[http://wiki.sdn.sap.com/wiki/display/SI/Createandmassupdateofpurchaseinforecordsfromaninputexcelfile.|http://wiki.sdn.sap.com/wiki/display/SI/Createandmassupdateofpurchaseinforecordsfromaninputexcelfile.]