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

Function module to Change Purchase Requistion.

Sonal_J
Participant
0 Likes
1,132

Hello all,

I need a to Change Purchase Requistion account assignment category from U to K.

It can be done manually with T-code ME51N. But this is a njoy transaction so its BDc is not recommended.

So i have to do it by using a Function Module.

Please suggest me a function module by which i can do it.

Thanks.

Hello all,

I need a to Change Purchase Requistion account assignment category from U to K.

It can be done manually with T-code ME51N. But this is a njoy transaction so its BDc is not recommended.

So i have to do it by using a Function Module.

Please suggest me a function module by which i can do it.

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,048

BAPI_REQUISITION_CHANGE

Read only

Former Member
0 Likes
1,048

Hi Sonal,

Try this Bapi:

BAPI_REQUISITION_CHANGE to Change Purchase Requisition.

Hope it helps.

Regards,

Rahul

Read only

0 Likes
1,048

Thanks for Replying.

But i need to change the Account Assignment category but with this BAPI we cant change the account assignment category.

So please suggest me something else.

Thanks

Read only

0 Likes
1,048

1) Transaction MASS

2) Object type: BUS2105

Read only

0 Likes
1,048

Hi sonal

please try BAPI_PR_CHANGE

Thanks

Vishal kapoor

Read only

Former Member
0 Likes
1,048

CALL FUNCTION 'BAPI_REQUISITION_CHANGE'

EXPORTING

NUMBER = EC_MDUA-BANFN

TABLES

REQUISITION_ITEMS_OLD = EC_BAPI_OLD

REQUISITION_ITEMS_NEW = EC_BAPI_NEW

  • REQUISITION_ACCOUNT_OLD = EC_BAPIEBKNO

  • REQUISITION_ACCOUNT_NEW = EC_BAPIEBKNN

  • REQUISITION_TEXT_OLD =

  • REQUISITION_TEXT_NEW =

RETURN = EC_BAPIRETURN

EXCEPTIONS

OTHERS = 1.

hope this will help u

Read only

Former Member
0 Likes
1,048

goto ome9 t.code ...

select the account assignment cat 'U' and choose details....

there check weather account assignment is changeable r not (a checkbox is provided there see that)..

if that is checked then it can be changed from U to K......

Read only

0 Likes
1,048

hello shan,

Thanks for replying.

But i have checked in the transaction and it is for good receipt but i want to do it in me52.

thanks