2013 Jul 08 9:54 AM
Hi Everyone,
First of all I know there is a bunch of discussions about putting PO on hold using BAPI_PO_CREATE1 but none of them gave me correct answer to my problem.
The problem is I can't put on hold my PO on quite a new system (SAP_APPL 605 SP level 10). Bapi returns errors, for example "please enter tax code" which should not occur because of import parameters:
ls_poheaderx-memory = 'X'.
ls_poheaderx-memorytype = 'X'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = ls_poheader
poheaderx = ls_poheaderx
TESTRUN = space
MEMORY_UNCOMPLETE = 'X'
MEMORY_COMPLETE = space
NO_PRICE_FROM_PO = 'X'
IMPORTING
exppurchaseorder = lv_exppurchaseorder
TABLES
return = lt_return
poitem = lt_poitem
poitemx = lt_poitemx
poschedule = lt_poschedule
poschedulex = lt_poschedulex.
Any suggestions?
Best regards,
Marcin
2013 Jul 08 10:10 AM
For Items
ls_poheader-memory = 'X'.
ls_poheader-memorytype = 'H'.
For ItemsX
ls_poheader-memory = 'X'.
ls_poheader-memorytype = 'X'.
IF a tax code is mandatory in your scenario, use the BAPI table BAPIMEPOACCOUNT to fill the tax code
BAPIMEPOACCOUNT-taxcode
Regards,
Venkat
Hi Everyone,
First of all I know there is a bunch of discussions about putting PO on hold using BAPI_PO_CREATE1 but none of them gave me correct answer to my problem.
The problem is I can't put on hold my PO on quite a new system (SAP_APPL 605 SP level 10). Bapi returns errors, for example "please enter tax code" which should not occur because of import parameters:
ls_poheaderx-memory = 'X'.
ls_poheaderx-memorytype = 'X'.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = ls_poheader
poheaderx = ls_poheaderx
TESTRUN = space
MEMORY_UNCOMPLETE = 'X'
MEMORY_COMPLETE = space
NO_PRICE_FROM_PO = 'X'
IMPORTING
exppurchaseorder = lv_exppurchaseorder
TABLES
return = lt_return
poitem = lt_poitem
poitemx = lt_poitemx
poschedule = lt_poschedule
poschedulex = lt_poschedulex.
Any suggestions?
Best regards,
Marcin
2013 Jul 08 10:10 AM
For Items
ls_poheader-memory = 'X'.
ls_poheader-memorytype = 'H'.
For ItemsX
ls_poheader-memory = 'X'.
ls_poheader-memorytype = 'X'.
IF a tax code is mandatory in your scenario, use the BAPI table BAPIMEPOACCOUNT to fill the tax code
BAPIMEPOACCOUNT-taxcode
Regards,
Venkat
2013 Jul 08 10:58 AM
Yes I did it in that way. But it's still not working.
I do some Notes research and probably it would be this note: 1870776.
EDIT: After implementing note 1870776 it's working now.
Regards,
Marcin
2013 Jul 08 10:18 AM
2013 Jul 08 11:53 AM
Dear Marcin
You have to pass 'X' to both of these variable. Since you are passing MEMORY_COMPLETE as SPACE.. it gives error. Try passing X to both of it.
It should work
MEMORY_UNCOMPLETE = 'X' "held if there is error in data
MEMORY_COMPLETE = 'X' "held even there is no error in data
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |