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 or Function Module for ME12

Former Member
0 Likes
3,331

I need a BAPI or Function Module for SAP Trans ME12.  I created a BDC for this trans but will not run in background mode works fine in foreground but I need this to run in background.  So trying a different approach by looking for a BAPI or Function module.   I need to enter Text and for Conditions PB00 need to created a new Valid From Date and Amount.  Does anyone have an example of how to accomplish this via a BAPI or know how to make the BDC work in background.

Thanks

Gary

9 REPLIES 9
Read only

Former Member
0 Likes
2,156

So, what happens when you run it in the background?

Rob

Read only

Former Member
0 Likes
2,156

Hi Gary

Please try with  FM : BAPI_PO_CREATE1


regards

Read only

JL23
Active Contributor
0 Likes
2,156

ME12 is "change info record" , the BAPI for PO creation will certainly not help here.

Why an own BDC if SAP provided RM06IBI0?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,156

I suppose problem comes from long text which are now "enjoy" (LOG_MMFI_P2P switched on?) could you confirm or give more information?

Question: Did you try good old report RM06IBI0?

Regards,

Raymond

Read only

0 Likes
2,156

Yes the ENJOY is keeping it from running in Background.  Did not try RM06IBI0 sorry I'm a novice never used that option.  Any tips or examples on running RM06IBI0?  I need to add text and change price what the ME12 trans allows us to do.

Read only

0 Likes
2,156

First read the documentation of the report.

Hint: The report is also avilable under LSMW for object 0060 Purchasing info rec.

Regards,

Raymond

PS: Insure that 1396817 - RM06IBI0: Error for texts in the batch input is not required in your system version.

Read only

Former Member
0 Likes
2,156

Hi ,

Please Try FM :  ME_DB_UPDATE_INFORECORDS 

Regards

Read only

JL23
Active Contributor
0 Likes
2,156

This function module only cares about EINA and EINE table, but he is also looking for condition creation/update. In case of Idoc processing Info record itself and info record conditions are 2 different Idocs.

Read only

0 Likes
2,156

This FM is an "update task" FM, so as a rule I would never use those, they are execute at end of transaction/BAPI and usually don't perform any check and consist only of some Open SQL statements and sometimes some change doc generation, so can (will) miss some updates and can (will) mess up your database.

Regards,

Raymond