You are on page 1of 18

3/27/2017 BAPItocreateServicePurchaseOrder

(http://go.sap.com/index.html)

Comm
unity
GetStarted(http://go.sap.com/community/gettingstarted.html)

(https://onedx.find.sap.com)
(htt
(http:/ ps://
/go.sa
Archived sha
p.com/
discussion red
comm
sare ui.s
unity.h
readonly. ervi
tml)
Learn ces.
more
/ sap.
aboutSAP
Archives(/) com
Q&A
/ /pro
Discussion
(https://go tect
sArchive
.sap.com/ ed.h
(/discussio
communit tml?
ns) /
y/about/qu ref=
ABAP
estions http
Developme
and s://a
nt
answers.h
(/discussio rchi
tml)
ns/space/a ve.s
bap) / ap.c
BAPIto om/
create
)
Service

Solutions (http://go.sap.com/solution.html)

Support (http://go.sap.com/support.html)

Training (http://go.sap.com/training-certication.html)

Community (http://go.sap.com/community.html)

Developer (http://go.sap.com/developer.html)

Partner (http://go.sap.com/partner.html) About (http://go.sap.com/about.html)


https://archive.sap.com/discussions/thread/3189147 1/18
Partner (http://go.sap.com/partner.html)
3/27/2017
About (http://go.sap.com/about.html)
BAPItocreateServicePurchaseOrder

PurchaseOrder

BAPItocreateServicePurchaseOrder
Thisquestionisanswered

DearExperts,

Plztellme,whichBAPIisusedtocreateservicePOandtellmethemandatoryshouldbepassinBAPI.

Ifyouhaveanyexamplesourcecodeplprovideme.

Note:IneedinformationaboutSERVICEPOneitherNormalPO.

Rgds,

Swapnika

(https://people.sap.com/swapnika.panse2)

SwapnikaPanse(https://people.sap.com/swapnika.panse2)
January06,2016at23:24PM
0Likes

CorrectAnswer

(https://people.sap.com/swapnika.panse2)

SwapnikaPanse(https://people.sap.com/swapnika.panse2)replied June14,2012at11:52AM

Hi...Iresolveditself...usingsapnotesapnote_0000420332

Mycodewhichisworkingfine...

*&*
*&IncludeZBAPI_PO_CREATE1
*&*

*StructurestoholdPOheaderdata

DATA:HEADERLIKEBAPIMEPOHEADER,
HEADERXLIKEBAPIMEPOHEADERX.

DATA:IT_RETURNTYPETABLEOFBAPIRET2WITHHEADERLINE,
https://archive.sap.com/discussions/thread/3189147 2/18
3/27/2017 BAPItocreateServicePurchaseOrder
DATA:IT_RETURNTYPETABLEOFBAPIRET2WITHHEADERLINE,
IT_POITEMTYPETABLEOFBAPIMEPOITEMWITHHEADERLINE,
IT_POITEMXTYPETABLEOFBAPIMEPOITEMXWITHHEADERLINE,
IT_POSCHEDULETYPETABLEOFBAPIMEPOSCHEDULEWITHHEADERLINE,
IT_POSCHEDULEXTYPETABLEOFBAPIMEPOSCHEDULXWITHHEADERLINE,
IT_POACCOUNTTYPETABLEOFBAPIMEPOACCOUNTWITHHEADERLINE,
IT_POACCOUNTXTYPETABLEOFBAPIMEPOACCOUNTXWITHHEADERLINE,
IT_POLIMITSTYPETABLEOFBAPIESUHCWITHHEADERLINE,
IT_POVALUESTYPETABLEOFBAPIESKLCWITHHEADERLINE.

CALLFUNCTION'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT=IT_BAPILIFNR
IMPORTING
OUTPUT=IT_BAPILIFNR.

HEADERCOMP_CODE='1000'.
HEADERDOC_TYPE='ZPOS'.
HEADERCREAT_DATE=SYDATUM.
HEADERVENDOR=IT_BAPILIFNR.
HEADERLANGU='EN'.
HEADERPMNTTRMS='0001'.
HEADERPURCH_ORG='1000'.
HEADERPUR_GROUP='001'.
HEADERCURRENCY='INR'.
HEADERDOC_DATE=SYDATUM.
HEADERINCOTERMS1='FOR'.
HEADERINCOTERMS2='LUDHIANA'.

HEADERXCOMP_CODE='X'.
HEADERXDOC_TYPE='X'.
HEADERCREAT_DATE='X'.
HEADERXVENDOR='X'.
HEADERXLANGU='X'.
HEADERXPMNTTRMS='X'.
HEADERXPURCH_ORG='X'.
HEADERXPUR_GROUP='X'.
HEADERXCURRENCY='X'.
HEADERXDOC_DATE='X'.
HEADERXINCOTERMS1='X'.
HEADERXINCOTERMS2='X'.

IT_POITEMPO_ITEM='00001'.
https://archive.sap.com/discussions/thread/3189147 3/18
3/27/2017 BAPItocreateServicePurchaseOrder
IT_POITEMPO_ITEM='00001'.
IT_POITEMSHORT_TEXT='PO_TEST'.
IT_POITEMPLANT='1000'.
IT_POITEMMATL_GROUP='CM11'.
IT_POITEMTAX_CODE='E3'.
IT_POITEMUNLIMITED_DLV=''.
IT_POITEMITEM_CAT='9'.
IT_POITEMACCTASSCAT='K'.
IT_POITEMPCKG_NO='0000000010'.
APPENDIT_POITEM.

IT_POITEMXPO_ITEM='00001'.
IT_POITEMXPO_ITEMX='X'.
IT_POITEMXSHORT_TEXT='X'.
IT_POITEMXPLANT='X'.
IT_POITEMXMATL_GROUP='X'.
IT_POITEMXTAX_CODE='X'.
IT_POITEMXUNLIMITED_DLV='X'.
IT_POITEMXITEM_CAT='X'.
IT_POITEMXACCTASSCAT='X'.
IT_POITEMXPCKG_NO='X'.
APPENDIT_POITEMX.

IT_POSCHEDULEPO_ITEM='00001'.
IT_POSCHEDULEDELIVERY_DATE=IT_BAPILFDAT.
IT_POSCHEDULEQUANTITY=IT_BAPIFKIMG.

APPENDIT_POSCHEDULE.

IT_POSCHEDULEXPO_ITEM='00001'.
IT_POSCHEDULEXPO_ITEMX='X'.
IT_POSCHEDULEXDELIVERY_DATE='X'.
IT_POSCHEDULEXQUANTITY='X'.

APPENDIT_POSCHEDULEX.

IT_POACCOUNTPO_ITEM='00001'.
IT_POACCOUNTSERIAL_NO='01'.
IT_POACCOUNTQUANTITY=IT_BAPIFKIMG.
IT_POACCOUNTGL_ACCOUNT='0000330013'.
IT_POACCOUNTCOSTCENTER='0010101003'.
APPENDIT_POACCOUNT.

IT_POACCOUNTXPO_ITEM='00001'.
IT_POACCOUNTXSERIAL_NO='01'.
IT_POACCOUNTXPO_ITEMX='X'.
https://archive.sap.com/discussions/thread/3189147 4/18
3/27/2017 BAPItocreateServicePurchaseOrder
IT_POACCOUNTXPO_ITEMX='X'.
IT_POACCOUNTXSERIAL_NOX='X'.
IT_POACCOUNTXQUANTITY='X'.
IT_POACCOUNTXGL_ACCOUNT='X'.
IT_POACCOUNTXCOSTCENTER='X'.
APPENDIT_POACCOUNTX.

IT_POLIMITSPCKG_NO='0000000010'.
IT_POLIMITSLIMIT='120.0000'.
IT_POLIMITSEXP_VALUE='120.0000'.
IT_POLIMITSNO_FRLIMIT='X'.
APPENDIT_POLIMITS.

IT_POVALUESPCKG_NO='0000000010'.
IT_POVALUESPERCENTAGE='1000'.
IT_POVALUESSERIAL_NO='01'.
APPENDIT_POVALUES.

CALLFUNCTION'BAPI_PO_CREATE1'
EXPORTING
POHEADER=HEADER
POHEADERX=HEADERX
*POADDRVENDOR=
*TESTRUN=
*MEMORY_UNCOMPLETE=
*MEMORY_COMPLETE=
*POEXPIMPHEADER=
*POEXPIMPHEADERX=
*VERSIONS=
*NO_MESSAGING=
*NO_MESSAGE_REQ=
*NO_AUTHORITY=
*NO_PRICE_FROM_PO=
IMPORTING
EXPPURCHASEORDER=PONUMBER
*EXPHEADER=
*EXPPOEXPIMPHEADER=
TABLES
RETURN=IT_RETURN
POITEM=IT_POITEM
POITEMX=IT_POITEMX
*POADDRDELIVERY=
POSCHEDULE=IT_POSCHEDULE
POSCHEDULEX=IT_POSCHEDULEX
POACCOUNT=IT_POACCOUNT
https://archive.sap.com/discussions/thread/3189147 5/18
3/27/2017 BAPItocreateServicePurchaseOrder
POACCOUNT=IT_POACCOUNT
*POACCOUNTPROFITSEGMENT=
POACCOUNTX=IT_POACCOUNTX
*POCONDHEADER=
*POCONDHEADERX=
*POCOND=
*POCONDX=
POLIMITS=IT_POLIMITS
*POCONTRACTLIMITS=
*POSERVICES=IT_POSERVICES
POSRVACCESSVALUES=IT_POVALUES
*POSERVICESTEXT=
*EXTENSIONIN=
*EXTENSIONOUT=
*POEXPIMPITEM=
*POEXPIMPITEMX=
*POTEXTHEADER=
*POTEXTITEM=
*ALLVERSIONS=
*POPARTNER=
*POCOMPONENTS=
*POCOMPONENTSX=
*POSHIPPING=
*POSHIPPINGX=
*POSHIPPINGEXP=
.
CALLFUNCTION'BAPI_TRANSACTION_COMMIT'.

ZMM_FR_PAYMANDT=SYMANDT.
ZMM_FR_PAYTRNTYP=IT_BAPITRNTYP.
ZMM_FR_PAYEXNUM=IT_BAPIEXNUM.
ZMM_FR_PAYDOCYR=IT_BAPIDOCYR.
ZMM_FR_PAYEXDAT=IT_BAPIEXDAT.
ZMM_FR_PAYEBELN=PONUMBER.
ZMM_FR_PAYEBELP='00010'.
ZMM_FR_PAYERNAM=SYUNAME.
ZMM_FR_PAYERZET=SYUZEIT.
ZMM_FR_PAYERDAT=SYDATUM.
ZMM_FR_PAYWERKS=IT_BAPIWERKS.
ZMM_FR_PAYKUNNR=IT_BAPIKUNNR.
ZMM_FR_PAYNAME1=IT_BAPINAME1.
ZMM_FR_PAYORT01=IT_BAPIORT01.
ZMM_FR_PAYKUNNR1=IT_BAPIKUNNR1.
ZMM_FR_PAYNAME11=IT_BAPINAME11.
ZMM_FR_PAYORT011=IT_BAPIORT011.
https://archive.sap.com/discussions/thread/3189147 6/18
3/27/2017 BAPItocreateServicePurchaseOrder

ZMM_FR_PAYVBELN=IT_BAPIVBELN.
ZMM_FR_PAYFKIMG=IT_BAPIFKIMG.
ZMM_FR_PAYVRKME=IT_BAPIVRKME.
ZMM_FR_PAYNETWR=IT_BAPINETWR.
*ZMM_FR_PAYWAERK=IT_BAPIWAERK.
ZMM_FR_PAYINCO1=IT_BAPIINCO1.
ZMM_FR_PAYINCO2=IT_BAPIINCO2.
ZMM_FR_PAYBOLNR=IT_BAPIBOLNR.
ZMM_FR_PAYXABLN=IT_BAPIXABLN.
ZMM_FR_PAYTRATY=IT_BAPITRATY.
ZMM_FR_PAYTRAID=IT_BAPITRAID.
ZMM_FR_PAYAMT1=IT_BAPIAMT1.
ZMM_FR_PAYAMT1R=IT_BAPIAMT1R.
ZMM_FR_PAYFRT=IT_BAPIFRT.

MODIFYZMM_FR_PAY.

COMMITWORK.

CLEARIT_BAPI.
CLEARZMM_FR_PAY.

1
Viewthisanswerincontext (/discussions/message/13324067#13324067)

HelpfulAnswerbyShambuVS(/discussions/message/13310724#13310724)

atyouwerelookingfor?Viewmoreonthistopic(https://go.sap.com/community/tag.html?
755570260738661924709785639136)or

kaquestion(https://answers.sap.com/questions/ask.html?primaryTagId=833755570260738661924709785639136)

7 replies

HelpfulAnswer

(https://people.sap.com/shambu.vs3)
ShambuVS(https://people.sap.com/shambu.vs3)replied

June08,2012at12:45PM

HiSwansika,
https://archive.sap.com/discussions/thread/3189147 7/18
3/27/2017 BAPItocreateServicePurchaseOrder

YouneedtouseBAPI_PO_CREATE1forcreatingservicePO's.

FillPOSERVICES,POSRVACCESSVALUESandPOLIMITS(ifyou
havethem).

Ifyouneedtoknowthevaluesthatneedtobepopulatedineach
table,takeaServicepoandruntheFMBAPI_PO_GETDETAIL
withthePOnumber.

Letusknowifyouhaveaspecificissue.

YoucanfindcodeforthishereinSCN.

Thanks,
Shambu

(https://people.sap.com/venkateswaran.k)

VenkateswaranKrishnamurthy(https://people.sap.com/venkateswaran.k)replied

June08,2012at12:54PM

BasicBAPIcalltocreatePOwheePo_HEADERyouhaveto
poupulate,PURITEMyouhavetopopulate.
Readdatafromyourexcelandstoreitininternanltable
LooptroughinternaltabeandpopulatethesePo_HEADER
PURITEMinternaltbalesandcaltheBAPIasfollows

CALLFUNCTION'BAPI_PO_CREATE1'
EXPORTING
POHEADER=PO_HEADER
POHEADERX=PO_HEADERX
NO_PRICE_FROM_PO='X'
IMPORTING
EXPPURCHASEORDER=PURORDNUMBER
TABLES
RETURN=RETURN1
POITEM=PURITEM
POITEMX=PURITEMX
POTEXTHEADER=PO_TEXTHEADER.
IFsysubrc=0.
CALLFUNCTION'BAPI_TRANSACTION_COMMIT'
EXPORTING

https://archive.sap.com/discussions/thread/3189147 8/18
3/27/2017 BAPItocreateServicePurchaseOrder

WAIT='X'
IMPORTING
RETURN=RETURN2.
"P_PONUMB=PURORDNUMBER.
ENDIF.

ExamplefieldsforthisheaderanditemtableImentionedabove
areasfollows:

PURITEMPO_ITEM=CTR1.
PURITEMMATERIAL=wa_datafeedmatnr.
PURITEMPLANT=wa_datafeedwerks.
PURITEMQUANTITY=wa_datafeedmenge.
PURITEMNET_PRICE=wa_datafeednetpr.
PURITEMSTGE_LOC=wa_datafeedlgort.
APPENDPURITEM.

PURITEMXPO_ITEM=CTR1.
PURITEMXMATERIAL='X'.
PURITEMXPLANT='X'.
PURITEMXQUANTITY='X'.
PURITEMXNET_PRICE='X'.
PURITEMXSTGE_LOC='X'.
APPENDPURITEMX.

PO_HEADERVENDOR=wa_datafeedlifnr."VENDOR
PO_HEADERCOMP_CODE=wa_datafeedbukrs."COMPANY
CODE
PO_HEADERDOC_TYPE=wa_datafeedbsart."DOCUMENT
TYPE
PO_HEADERCREAT_DATE=wa_datafeedaedat."DATEON
WHICHRECORDWASCREATED
PO_HEADERPURCH_ORG=wa_datafeedekorg.
"PURCHASINGORGANIZATION
PO_HEADERPUR_GROUP=wa_datafeedekgrp.
"PURCHASINGGROUP
PO_HEADERLANGU='E'.
APPENDPO_HEADER.

PO_HEADERXVENDOR='X'.
PO_HEADERXCOMP_CODE='X'.
PO_HEADERXDOC_TYPE='X'.
PO_HEADERXCREAT_DATE='X'.
PO_HEADERXPURCH_ORG='X'.
PO_HEADERXPUR_GROUP='X'.
PO_HEADERXLANGU='X'.
APPENDPO_HEADERX.

https://archive.sap.com/discussions/thread/3189147 9/18
3/27/2017 BAPItocreateServicePurchaseOrder

Hopethisguidelineshelpsyou

Regards,
Venkat

(https://people.sap.com/shambu.vs3)
ShambuVS(https://people.sap.com/shambu.vs3)replied

June08,2012at13:02PM

HiVenkat,

ThequeryisregardingServicePO

Thanks,

Shambu

(https://people.sap.com/raymond.giuseppi)

RaymondGiuseppi(https://people.sap.com/raymond.giuseppi)replied June08,2012at13:07PM

Therearesomesamples/templatesinOSSnotes,startwithNote499626FAQ:BAPIsin
theserviceprocurement(https://service.sap.com/sap/support/notes/499626).

Regards,

Raymond

(https://people.sap.com/venkateswaran.k)

VenkateswaranKrishnamurthy(https://people.sap.com/venkateswaran.k)replied

June09,2012at08:49AM

https://archive.sap.com/discussions/thread/3189147 10/18
3/27/2017 BAPItocreateServicePurchaseOrder

Checkthisout..ifitisusefultoyou...

http://scn.sap.com/thread/543774(/thread/543774)

Regards,

Venkat

CorrectAnswer

(https://people.sap.com/swapnika.panse2)

SwapnikaPanse(https://people.sap.com/swapnika.panse2)replied June14,2012at11:52AM

Hi...Iresolveditself...usingsapnotesapnote_0000420332

Mycodewhichisworkingfine...

*&*
*&IncludeZBAPI_PO_CREATE1
*&*

*StructurestoholdPOheaderdata

DATA:HEADERLIKEBAPIMEPOHEADER,
HEADERXLIKEBAPIMEPOHEADERX.

DATA:IT_RETURNTYPETABLEOFBAPIRET2WITHHEADERLINE,
IT_POITEMTYPETABLEOFBAPIMEPOITEMWITHHEADERLINE,
IT_POITEMXTYPETABLEOFBAPIMEPOITEMXWITHHEADERLINE,
IT_POSCHEDULETYPETABLEOFBAPIMEPOSCHEDULEWITHHEADERLINE,
IT_POSCHEDULEXTYPETABLEOFBAPIMEPOSCHEDULXWITHHEADERLINE,
IT_POACCOUNTTYPETABLEOFBAPIMEPOACCOUNTWITHHEADERLINE,
IT_POACCOUNTXTYPETABLEOFBAPIMEPOACCOUNTXWITHHEADERLINE,
IT_POLIMITSTYPETABLEOFBAPIESUHCWITHHEADERLINE,
IT_POVALUESTYPETABLEOFBAPIESKLCWITHHEADERLINE.

CALLFUNCTION'CONVERSION_EXIT_ALPHA_INPUT'
https://archive.sap.com/discussions/thread/3189147 11/18
3/27/2017 BAPItocreateServicePurchaseOrder

EXPORTING
INPUT=IT_BAPILIFNR
IMPORTING
OUTPUT=IT_BAPILIFNR.

HEADERCOMP_CODE='1000'.
HEADERDOC_TYPE='ZPOS'.
HEADERCREAT_DATE=SYDATUM.
HEADERVENDOR=IT_BAPILIFNR.
HEADERLANGU='EN'.
HEADERPMNTTRMS='0001'.
HEADERPURCH_ORG='1000'.
HEADERPUR_GROUP='001'.
HEADERCURRENCY='INR'.
HEADERDOC_DATE=SYDATUM.
HEADERINCOTERMS1='FOR'.
HEADERINCOTERMS2='LUDHIANA'.

HEADERXCOMP_CODE='X'.
HEADERXDOC_TYPE='X'.
HEADERCREAT_DATE='X'.
HEADERXVENDOR='X'.
HEADERXLANGU='X'.
HEADERXPMNTTRMS='X'.
HEADERXPURCH_ORG='X'.
HEADERXPUR_GROUP='X'.
HEADERXCURRENCY='X'.
HEADERXDOC_DATE='X'.
HEADERXINCOTERMS1='X'.
HEADERXINCOTERMS2='X'.

IT_POITEMPO_ITEM='00001'.
IT_POITEMSHORT_TEXT='PO_TEST'.
IT_POITEMPLANT='1000'.
IT_POITEMMATL_GROUP='CM11'.
IT_POITEMTAX_CODE='E3'.
IT_POITEMUNLIMITED_DLV=''.
IT_POITEMITEM_CAT='9'.
IT_POITEMACCTASSCAT='K'.
IT_POITEMPCKG_NO='0000000010'.
APPENDIT_POITEM.

IT_POITEMXPO_ITEM='00001'.
IT_POITEMXPO_ITEMX='X'.

https://archive.sap.com/discussions/thread/3189147 12/18
3/27/2017 BAPItocreateServicePurchaseOrder

IT_POITEMXSHORT_TEXT='X'.
IT_POITEMXPLANT='X'.
IT_POITEMXMATL_GROUP='X'.
IT_POITEMXTAX_CODE='X'.
IT_POITEMXUNLIMITED_DLV='X'.
IT_POITEMXITEM_CAT='X'.
IT_POITEMXACCTASSCAT='X'.
IT_POITEMXPCKG_NO='X'.
APPENDIT_POITEMX.

IT_POSCHEDULEPO_ITEM='00001'.
IT_POSCHEDULEDELIVERY_DATE=IT_BAPILFDAT.
IT_POSCHEDULEQUANTITY=IT_BAPIFKIMG.

APPENDIT_POSCHEDULE.

IT_POSCHEDULEXPO_ITEM='00001'.
IT_POSCHEDULEXPO_ITEMX='X'.
IT_POSCHEDULEXDELIVERY_DATE='X'.
IT_POSCHEDULEXQUANTITY='X'.

APPENDIT_POSCHEDULEX.

IT_POACCOUNTPO_ITEM='00001'.
IT_POACCOUNTSERIAL_NO='01'.
IT_POACCOUNTQUANTITY=IT_BAPIFKIMG.
IT_POACCOUNTGL_ACCOUNT='0000330013'.
IT_POACCOUNTCOSTCENTER='0010101003'.
APPENDIT_POACCOUNT.

IT_POACCOUNTXPO_ITEM='00001'.
IT_POACCOUNTXSERIAL_NO='01'.
IT_POACCOUNTXPO_ITEMX='X'.
IT_POACCOUNTXSERIAL_NOX='X'.
IT_POACCOUNTXQUANTITY='X'.
IT_POACCOUNTXGL_ACCOUNT='X'.
IT_POACCOUNTXCOSTCENTER='X'.
APPENDIT_POACCOUNTX.

IT_POLIMITSPCKG_NO='0000000010'.
IT_POLIMITSLIMIT='120.0000'.
IT_POLIMITSEXP_VALUE='120.0000'.
IT_POLIMITSNO_FRLIMIT='X'.
APPENDIT_POLIMITS.

https://archive.sap.com/discussions/thread/3189147 13/18
3/27/2017 BAPItocreateServicePurchaseOrder

IT_POVALUESPCKG_NO='0000000010'.
IT_POVALUESPERCENTAGE='1000'.
IT_POVALUESSERIAL_NO='01'.
APPENDIT_POVALUES.

CALLFUNCTION'BAPI_PO_CREATE1'
EXPORTING
POHEADER=HEADER
POHEADERX=HEADERX
*POADDRVENDOR=
*TESTRUN=
*MEMORY_UNCOMPLETE=
*MEMORY_COMPLETE=
*POEXPIMPHEADER=
*POEXPIMPHEADERX=
*VERSIONS=
*NO_MESSAGING=
*NO_MESSAGE_REQ=
*NO_AUTHORITY=
*NO_PRICE_FROM_PO=
IMPORTING
EXPPURCHASEORDER=PONUMBER
*EXPHEADER=
*EXPPOEXPIMPHEADER=
TABLES
RETURN=IT_RETURN
POITEM=IT_POITEM
POITEMX=IT_POITEMX
*POADDRDELIVERY=
POSCHEDULE=IT_POSCHEDULE
POSCHEDULEX=IT_POSCHEDULEX
POACCOUNT=IT_POACCOUNT
*POACCOUNTPROFITSEGMENT=
POACCOUNTX=IT_POACCOUNTX
*POCONDHEADER=
*POCONDHEADERX=
*POCOND=
*POCONDX=
POLIMITS=IT_POLIMITS
*POCONTRACTLIMITS=
*POSERVICES=IT_POSERVICES
POSRVACCESSVALUES=IT_POVALUES
*POSERVICESTEXT=

https://archive.sap.com/discussions/thread/3189147 14/18
3/27/2017 BAPItocreateServicePurchaseOrder

*EXTENSIONIN=
*EXTENSIONOUT=
*POEXPIMPITEM=
*POEXPIMPITEMX=
*POTEXTHEADER=
*POTEXTITEM=
*ALLVERSIONS=
*POPARTNER=
*POCOMPONENTS=
*POCOMPONENTSX=
*POSHIPPING=
*POSHIPPINGX=
*POSHIPPINGEXP=
.
CALLFUNCTION'BAPI_TRANSACTION_COMMIT'.

ZMM_FR_PAYMANDT=SYMANDT.
ZMM_FR_PAYTRNTYP=IT_BAPITRNTYP.
ZMM_FR_PAYEXNUM=IT_BAPIEXNUM.
ZMM_FR_PAYDOCYR=IT_BAPIDOCYR.
ZMM_FR_PAYEXDAT=IT_BAPIEXDAT.
ZMM_FR_PAYEBELN=PONUMBER.
ZMM_FR_PAYEBELP='00010'.
ZMM_FR_PAYERNAM=SYUNAME.
ZMM_FR_PAYERZET=SYUZEIT.
ZMM_FR_PAYERDAT=SYDATUM.
ZMM_FR_PAYWERKS=IT_BAPIWERKS.
ZMM_FR_PAYKUNNR=IT_BAPIKUNNR.
ZMM_FR_PAYNAME1=IT_BAPINAME1.
ZMM_FR_PAYORT01=IT_BAPIORT01.
ZMM_FR_PAYKUNNR1=IT_BAPIKUNNR1.
ZMM_FR_PAYNAME11=IT_BAPINAME11.
ZMM_FR_PAYORT011=IT_BAPIORT011.
ZMM_FR_PAYVBELN=IT_BAPIVBELN.
ZMM_FR_PAYFKIMG=IT_BAPIFKIMG.
ZMM_FR_PAYVRKME=IT_BAPIVRKME.
ZMM_FR_PAYNETWR=IT_BAPINETWR.
*ZMM_FR_PAYWAERK=IT_BAPIWAERK.
ZMM_FR_PAYINCO1=IT_BAPIINCO1.
ZMM_FR_PAYINCO2=IT_BAPIINCO2.
ZMM_FR_PAYBOLNR=IT_BAPIBOLNR.
ZMM_FR_PAYXABLN=IT_BAPIXABLN.
ZMM_FR_PAYTRATY=IT_BAPITRATY.
ZMM_FR_PAYTRAID=IT_BAPITRAID.

https://archive.sap.com/discussions/thread/3189147 15/18
3/27/2017 BAPItocreateServicePurchaseOrder

ZMM_FR_PAYAMT1=IT_BAPIAMT1.
ZMM_FR_PAYAMT1R=IT_BAPIAMT1R.
ZMM_FR_PAYFRT=IT_BAPIFRT.

MODIFYZMM_FR_PAY.

COMMITWORK.

CLEARIT_BAPI.
CLEARZMM_FR_PAY.

(https://people.sap.com/chetanvsakunde)

ChetanSakunde(https://people.sap.com/chetanvsakunde)replied January06,2016at23:24PM

HiSwapnil,

InyourexampleyouhavenotpassedvaluestoPOSERVICESparameterforcreating
Seviceorder.Itiscommented.Isitnotrequiredtopassvaluesto.

IamtryingtocreateServiceorderfromPRandgettingsomeerrors.Iampopulatingboth
POSERVICESandPOSRVACCESSVALUESbutgettingerror.

Kindlyhelp.

Thanks&Regards,

ChetanSakunde

Share & Follow


(https://www.facebook.com/sapcommunitynetwork?ref=ts) (https://twitter.com/sapcommnet)

(https://www.youtube.com/user/SAPCommunities) (https://www.linkedin.com/company/sap)

(https://plus.google.com/u/0/+SAPCommunities/posts) (https://instagram.com/sap/)

(http://www.slideshare.net/SAP)

Privacy(http://go.sap.com/about/legal/privacy.html) TermsofUse(http://go.sap.com/corporate/en/legal/termsofuse.html)
LegalDisclosure(http://go.sap.com/about/legal/impressum.html) Copyright(http://go.sap.com/about/legal/copyright.html)
Trademark(http://go.sap.com/about/legal/trademark.html) Sitemap(http://www.sap.com/sitemap/index.html) Newsletter
(https://go.sap.com/registration/newsletter.html)

https://archive.sap.com/discussions/thread/3189147 16/18
3/27/2017 BAPItocreateServicePurchaseOrder

https://archive.sap.com/discussions/thread/3189147 17/18
3/27/2017 BAPItocreateServicePurchaseOrder

https://archive.sap.com/discussions/thread/3189147 18/18