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

error while salesorder creation using bapi

former_member190312
Active Participant
0 Likes
532

Hi All

while testing the bapi salesordercreatefromdat2 in se37 ,its working.

but in reports i m passing same data with this bapi ,its not working.

its showing error message like:sales document type OR is not defined.

so where is the problem.

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
504

This is a common issue. Because it involves a screen, the SE37 test workbench converts values automatically using the available conversion exits. An internal BAPI call does not. You can either pass the internal value 'TA' to the BAPI or you can check the import parameter that identifies that you are using external values.

3 REPLIES 3
Read only

Former Member
0 Likes
504

Hello ,

When you are executing the BAPI using se37 ,you say the FM is wokring fine,

As per my knowledge the FM might be passing some fields by default which you have to check and pass them the same way in your custom program.

Also check whether the order type is existing or not by the time you execute your custom report.

Thanks,

M.naveen

Read only

Former Member
0 Likes
504

Hi

Check whether passing values are correct for example the OR document type is defined or not

Regards

Shiva

Read only

brad_bohn
Active Contributor
0 Likes
505

This is a common issue. Because it involves a screen, the SE37 test workbench converts values automatically using the available conversion exits. An internal BAPI call does not. You can either pass the internal value 'TA' to the BAPI or you can check the import parameter that identifies that you are using external values.