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: 

BAPI To Upload

Former Member
0 Kudos

I am trying BAPI BAPI_M_REVAL_CREATEPRICECHANGE to Upload MR21 (price Change ) please please guide me regarding step-by-step procedure to upload like do i need to register it or ( just assign valuses to bapi structure and call BAPI function Miodule )

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

<i> or ( just assign valuses to bapi structure and call BAPI function Miodule )</i>

Yes, just fill the values and call the BAPI. You can use the function module GUI_UPLOAD to upload your file to internal table, then loop at the internal table and call the BAPI.

Regards,

Rich Heilman

8 REPLIES 8

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

<i> or ( just assign valuses to bapi structure and call BAPI function Miodule )</i>

Yes, just fill the values and call the BAPI. You can use the function module GUI_UPLOAD to upload your file to internal table, then loop at the internal table and call the BAPI.

Regards,

Rich Heilman

JoseMG
Explorer
0 Kudos

Brajesh, Rich,

Does any one know if BAPI_M_REVAL_CREATEPRICECHANGE is active?

I tried to used but there is an error_flag defaulted at the beginning of the code that exits the BAPI.

Any ideas to uploading Material Prices in SAP (MR21)? other than BDC i.e. IDoc?

Thanks and Regards,

Jose

Former Member
0 Kudos

Hi,

As adviced on this forum I have tried to use the BAPI BAPI_M_REVAL_CREATEPRICECHANGE for changing standard prices (MR21) but this fails due to the following code inside the function module:

  • Im Standard deaktiviert

error_flag = 'X'.

IF ( NOT error_flag IS INITIAL ).

EXIT.

ENDIF.

I am really curious how other people used this BAPI and how to avoid this coding.

Thx for your response

Former Member
0 Kudos

it seems that we need to register BAPI for Uploading data ( i need to confirm it ) well the problem was solved using BDC . My speacial thanks to rich for helping me

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

i too got the same error

error_flag = 'X'.

IF ( NOT error_flag IS INITIAL ).

EXIT.

ENDIF.

please advice how to solve it

Former Member
0 Kudos

please advie to solve the problem error_flag = 'X'.

IF ( NOT error_flag IS INITIAL ).

EXIT.

ENDIF.

0 Kudos

try to create a 'Z' function from the standard and comment that code.

"IF ( NOT error_flag IS INITIAL ).

"EXIT.

"ENDIF.