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 for simulation purchasing order

Former Member
0 Likes
2,158

Exist a bapi for simulation purchasing order. I'm also interesting to NOT consume a number in number range.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,200

Hi,

Have you checked TESTRUN parameter in bapi BAPI_PO_CREATE1. BAPI documentation says

Test Indicator
Description
    This parameter is a test switch.
    If you activate the switch, the system does not save the document.
Value range
    Space = Document should be saved
      X   = Document should not be saved
Default
    Space

Regards

Vinod

3 REPLIES 3
Read only

Former Member
0 Likes
1,201

Hi,

Have you checked TESTRUN parameter in bapi BAPI_PO_CREATE1. BAPI documentation says

Test Indicator
Description
    This parameter is a test switch.
    If you activate the switch, the system does not save the document.
Value range
    Space = Document should be saved
      X   = Document should not be saved
Default
    Space

Regards

Vinod

Read only

0 Likes
1,200

There is an example to explain better?

Read only

0 Likes
1,200

Hi,

CALL FUNCTION 'BAPI_PO_CREATE1'

EXPORTING

POHEADER = HEADER

POHEADERX = HEADERX

  • POADDRVENDOR =

TESTRUN = 'X'

IMPORTING

EXPPURCHASEORDER = V_EXPPURCHASEORDER

  • EXPHEADER =

  • EXPPOEXPIMPHEADER =

TABLES

RETURN = RETURN

POITEM = ITEM

POITEMX = ITEMX.