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

CALL FUNCTION 'BAPI_PR_CREATE'

Former Member
0 Likes
2,463

I have created  PR using CALL FUNCTION 'BAPI_PR_CREATE' but those PR is not exist in ME53n .

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,060

Beyond the paradox contained in your sentence, did you

  • Check return parameter RETURN for error message - Loop at return for records with TYPE 'E' or 'A'
  • Execute the COMMIT WORK (usually thru FM BAPI_TRANSACTION_COMMIT)
  • Read the documentation of the FM
  • Try to create the same PR with transaction ME51N


Regards,

Raymond

11 REPLIES 11
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,060

Please use4 BAPI_TRANSACTION_COMMIt after the sucessful call

Read only

Former Member
0 Likes
2,060

hi,

Use this call function to get create pr.

call function 'BAPI_TRANSACTION_COMMIT'
      exporting
           wait = 'X'.








Regards,

Gopi

Read only

Former Member
0 Likes
2,060

Hi Vinoth,

Note  that after executing BAPI_PR_CREATE method, you must execute the function module BAPI_TRANSACTION_COMMIT, so that the data is written to the database.

For more information,Go through the FM documentation.Revert back if still the issue exists after making necessary change in your program.

Thanks

KH

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,061

Beyond the paradox contained in your sentence, did you

  • Check return parameter RETURN for error message - Loop at return for records with TYPE 'E' or 'A'
  • Execute the COMMIT WORK (usually thru FM BAPI_TRANSACTION_COMMIT)
  • Read the documentation of the FM
  • Try to create the same PR with transaction ME51N


Regards,

Raymond

Read only

Former Member
0 Likes
2,060

hi ,

        Better u use BDC it easy to create

Regards,

gopi.

Read only

0 Likes
2,060

Why BDC...??????

Read only

0 Likes
2,060

hi nabheet,

     if it not possible to create in bapi  we can create using bdc using transcation method.however our requirement want to complete. i just suggest another way to him.

Read only

0 Likes
2,060

Hi Gopi,

another BAPI is available to create the PR  BAPI_REQUISITION_CREATE

Read only

0 Likes
2,060

hi vinod,

    Me51n is PR creation transaction code.

    you can USE PR creation through BAPI,

    'BAPI_PR_CREATE'

after creation PR your mandatory do the Commit work through FM

BAPI_TRANSACTION_COMMIT

After you can Check in ME53n.

  In me53n Dont display means your giving data may be wrong..

  so at that time u can debug u will find the problems..

Y iam saying like this Yesterday i am also facing same probelm...but now iam solve the issue.

i think this is helpful for you.

All the best.

Read only

0 Likes
2,060

hi kiran,

               s using that bapi also we can create pr. i just suggesting him there is another way also.

Regards,

Gopi

Read only

0 Likes
2,060

Hi Gopi

No offence..Yes you can do it that way also..but it is always good practice to first search for what is the reason why BAPI is not working... It will work in almost all the cases for most of the things..Because if some error is coming then even BDC will also throw the same...

I believe BAPI's are anyday better than BDC.

Nabheet