MultiMapping to BAPIS
Hi
I got WS->BAPIS scenario
one Message Type needs to be mapped to 4 BAPIS
what will b the best way to do it?
its a synchronic interface , and in the interface mapping it wont let me add the 4 bapis ( for request n reply )
bcz its synchronic
thx,Shai
thx for the answer Stefan,Ill try to cr8 wrapper RFC
can u ellborate on using interfaces structure from the web service? do u have relevant weblogs/pdfs?
thx,shai
Hi Shai,
are you an ABAP developer? Then create a wrapper RFC with calls the BAPI and sends the result back.
When your application is 6.20 or higher, you can use the message interfaces structure from the web services and create sync. inbound proxies as a wrapper. In that case you need no mapping at all.
Regards
Stefan
Similar Messages
-
Help Required for MultiMapping between File to BAPI
Hi,
Any body have idea about following scenario problem:
This is about file structure to BAPI structure.. auctully file would call BAPI for 1: N(file having various headers and line items, each header and associated line items(called one record) would able to call BAPI in target side).
Sourcefilestructure: TargetBAPIStucture
Messages (1:1) Message(1:1)
Message1(1:1) Message1(1:1)
MT_Request(1:1)
Recordset(1:U) --> BAPI_INCOMINGINVOICE(0:U)
Structure(1:u)
HeaderData(1:1)
Filed1(0:1) --> filed1(0:1)
Field2(0:1) --> field2(0:2)
Constant(null) ---> GLACCOUNTDATA(0:1)
Structure(1:u) ---> item(0:U)
field3(0:1) ---> field1(0:1)
field4(0:1) ---> field2(0:1)
filed32(0:1) ---> filed44(0:1)
My structure sending every time :
Receive>Transfromation->Block(Send)
ReceiveStep == File_ABS(request message)
Transformation==IM_FileRequest_BAPI ;Source Interface= File_ABS; Target Interface= BAPI_ABS
Block = parForEach, MultilineElement = BAPI_ABS(process); CurrentLine= BAPI_ABS(block)
SendStep = BAPI_ABS
Note: There is no relation between Header and Line items in my scenario. It is coming like single structure as 32 fields .(which can be commonly mapped in HeaderData and GLAccountdata)
While i am sending the values to BAPI, it is taking top row as header data remaining all rows as line items(it is not going to read next header line, but it is taking remaining line items which are exist in other header lines )..!
Note: Even through key field i am trying to call header line items, but it wont call!still calling all line items with top header line.
Hope you undersand my problem..
Its like i am taking flat file whcih contains various headers and line items(One header with line items called->One record). So each header I need to call BAPI simultanousely.
If you want see sample input payload and out put payload..please let me know.
Thanks,
Regards
SankarHi Bahvesh/Prakash
Pleasse see my payload..!
Sourcefilestructure:
Messages (1:1)
Message1(1:1)
MT_Request(1:1)
Recordset(1:U)
Structure(1:u)
Filed1(0:1)
Field2(0:1)
field3(0:1)
field4(0:1)
TargetStructure:
Message(1:1)
Message1(1:1)
BAPI_INCOMINGINVOICE(0:U)
HeaderData(1:1)
filed1(0:1)
field2(0:1)
GLACCOUNTDATA(0:1)
item(0:U)
field1(0:1)
field2(0:1)
Request payload:
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_PESFILEINVOICESTR xmlns:ns="urn:com.pesfileinvoice:xi:1.0">
- <Recordset>
- <Structure>
<L_BUKRS>001150</L_BUKRS>
<L_GJAHR />
<L_BLART>KR</L_BLART>
<L_BLDAT>08252006</L_BLDAT>
<L_BUDAT>08262006</L_BUDAT>
<L_MONAT />
<L_XBLNR>*INV4444</L_XBLNR>
<L_WAERS>USD</L_WAERS>
<L_BUZEI>001</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL />
<L_KOART>K</L_KOART>
<L_SHKGZ>H</L_SHKGZ>
<L_SRBTR>1000.98</L_SRBTR>
<L_ZUONR>INV1234</L_ZUONR>
<L_SGTXT>*777-8030-861</L_SGTXT>
<L_ACCNT>0000035345</L_ACCNT>
<L_KOSTL />
<L_AUFNR />
<L_ZFBDT>08272006</L_ZFBDT>
<L_ZLSCH>C</L_ZLSCH>
<L_EMPFB>0009800331</L_EMPFB>
<L_ZTERM>015N</L_ZTERM>
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>002</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>600.55</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*777-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000007320</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>003</L_BUZEI>
<L_BUKRS1>001151</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>400.43</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*777-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000006010</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS>001150</L_BUKRS>
<L_GJAHR />
<L_BLART>KR</L_BLART>
<L_BLDAT>08252006</L_BLDAT>
<L_BUDAT>08262006</L_BUDAT>
<L_MONAT />
<L_XBLNR>*INV4444</L_XBLNR>
<L_WAERS>USD</L_WAERS>
<L_BUZEI>001</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL />
<L_KOART>K</L_KOART>
<L_SHKGZ>H</L_SHKGZ>
<L_SRBTR>1300.98</L_SRBTR>
<L_ZUONR>INV1234</L_ZUONR>
<L_SGTXT>*777-8030-861</L_SGTXT>
<L_ACCNT>0000035345</L_ACCNT>
<L_KOSTL />
<L_AUFNR />
<L_ZFBDT>08272006</L_ZFBDT>
<L_ZLSCH>C</L_ZLSCH>
<L_EMPFB>0009800331</L_EMPFB>
<L_ZTERM>015N</L_ZTERM>
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>002</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>800.55</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*888-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000007320</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>003</L_BUZEI>
<L_BUKRS1>001151</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>500.43</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*999-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000006010</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS>001150</L_BUKRS>
<L_GJAHR />
<L_BLART>KR</L_BLART>
<L_BLDAT>08252006</L_BLDAT>
<L_BUDAT>08262006</L_BUDAT>
<L_MONAT />
<L_XBLNR>*INV4444</L_XBLNR>
<L_WAERS>USD</L_WAERS>
<L_BUZEI>001</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL />
<L_KOART>K</L_KOART>
<L_SHKGZ>H</L_SHKGZ>
<L_SRBTR>700.98</L_SRBTR>
<L_ZUONR>INV1234</L_ZUONR>
<L_SGTXT>*777-8030-861</L_SGTXT>
<L_ACCNT>0000035345</L_ACCNT>
<L_KOSTL />
<L_AUFNR />
<L_ZFBDT>08272006</L_ZFBDT>
<L_ZLSCH>C</L_ZLSCH>
<L_EMPFB>0009800331</L_EMPFB>
<L_ZTERM>015N</L_ZTERM>
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>002</L_BUZEI>
<L_BUKRS1>001150</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>200.55</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*333-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000007320</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
- <Structure>
<L_BUKRS />
<L_GJAHR />
<L_BLART />
<L_BLDAT />
<L_BUDAT />
<L_MONAT />
<L_XBLNR />
<L_WAERS />
<L_BUZEI>003</L_BUZEI>
<L_BUKRS1>001151</L_BUKRS1>
<L_BSCHL>40</L_BSCHL>
<L_KOART>S</L_KOART>
<L_SHKGZ>S</L_SHKGZ>
<L_SRBTR>500.43</L_SRBTR>
<L_ZUONR />
<L_SGTXT>*222-8030-861</L_SGTXT>
<L_ACCNT>0000738100</L_ACCNT>
<L_KOSTL>0000006010</L_KOSTL>
<L_AUFNR />
<L_ZFBDT />
<L_ZLSCH />
<L_EMPFB />
<L_ZTERM />
<L_NAME1 />
<L_NAME2 />
<L_PSTLZ />
<L_ORT01 />
<L_LAND1 />
<L_STRAS />
<L_PFACH />
<L_REGIO />
</Structure>
</Recordset>
</ns:MT_PESFILEINVOICESTR>
ResponsePayload:
<?xml version="1.0" encoding="utf-8" ?>
- <ns2:BAPI_INCOMINGINVOICE_CREATE xmlns:ns2="urn:sap-com:document:sap:rfc:functions">
- <HEADERDATA>
<INVOICE_IND>X</INVOICE_IND>
<DOC_TYPE>KR</DOC_TYPE>
<DOC_DATE>20060825</DOC_DATE>
<PSTNG_DATE>20060826</PSTNG_DATE>
<REF_DOC_NO>*INV4444</REF_DOC_NO>
<COMP_CODE>1150</COMP_CODE>
<DIFF_INV>0000035345</DIFF_INV>
<CURRENCY>USD</CURRENCY>
<GROSS_AMOUNT>1000.98</GROSS_AMOUNT>
<PMNTTRMS>015N</PMNTTRMS>
<BLINE_DATE>20060827</BLINE_DATE>
<PYMT_METH>C</PYMT_METH>
<PAYEE_PAYER>0009800331</PAYEE_PAYER>
<ITEM_TEXT>*777-8030-861</ITEM_TEXT>
</HEADERDATA>
- <GLACCOUNTDATA>
- <item>
<INVOICE_DOC_ITEM>002</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>600.55</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1150</COMP_CODE>
<ITEM_TEXT>*777-8030-861</ITEM_TEXT>
<COSTCENTER>0000007320</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000007320</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<INVOICE_DOC_ITEM>003</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>400.43</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1151</COMP_CODE>
<ITEM_TEXT>*777-8030-861</ITEM_TEXT>
<COSTCENTER>0000006010</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000006010</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<INVOICE_DOC_ITEM>002</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>800.55</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1150</COMP_CODE>
<ITEM_TEXT>*888-8030-861</ITEM_TEXT>
<COSTCENTER>0000007320</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000007320</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<INVOICE_DOC_ITEM>003</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>500.43</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1151</COMP_CODE>
<ITEM_TEXT>*999-8030-861</ITEM_TEXT>
<COSTCENTER>0000006010</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000006010</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<INVOICE_DOC_ITEM>002</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>200.55</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1150</COMP_CODE>
<ITEM_TEXT>*333-8030-861</ITEM_TEXT>
<COSTCENTER>0000007320</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000007320</PROFIT_CTR>
<ALLOC_NMBR />
</item>
- <item>
<INVOICE_DOC_ITEM>003</INVOICE_DOC_ITEM>
<GL_ACCOUNT>0000738100</GL_ACCOUNT>
<ITEM_AMOUNT>500.43</ITEM_AMOUNT>
<DB_CR_IND>S</DB_CR_IND>
<COMP_CODE>1151</COMP_CODE>
<ITEM_TEXT>*222-8030-861</ITEM_TEXT>
<COSTCENTER>0000006010</COSTCENTER>
<ORDERID />
<PROFIT_CTR>0000006010</PROFIT_CTR>
<ALLOC_NMBR />
</item>
</GLACCOUNTDATA>
<ITEMDATA />
<RETURN />
</ns2:BAPI_INCOMINGINVOICE_CREATE> -
Hello.
Problem to multipapping
Structure SOURCE.
Resulset
ROW (0..outbound)
-ID (Identificador)
-BUS_ACT
-USERNAME
-ITEMNO_ACC1
-CUSTOMER1
-GL_ACCOUNT1
-ITEMNO_ACC2
-CUSTOMER2
-GL_ACCOUNT2
Example
ID ;BUS_ACT;USERNAME;ITEMNO_ACC1;CUSTOMER1;GL_ACCOUNT1;ITEMNO_ACC2;CUSTOMER2;GL_ACCOUNT2
ID1;BUS1;CLEON;1;CUS1;
ID1;BUS1;CLEON;2;CUS2;
ID2;BUS1;CLEON;1;CUS1;GL01; ; ;
ID2;BUS1;CLEON;2;CUS2;GL01; ; ;
ID2;BUS1;CLEON;3;CUS3;GL01; ; ;
ID2;BUS1;CLEON; ; ; ;1;CUS1;GL01
ID2;BUS1;CLEON; ; ; ;2;CUS2;GL02
Structure TARGET.
BAPI_ACC_DOCUMENT_POST (0..Unbound)
-DOCUMENTHEADER (1..1)
- BUS_ACT
- USERNAME
-ACCOUNTRECEIVABLE (0..1)
--ITEMS(1..Outbound)
- - ITEMNO_ACC1
- - CUSTOMER1
- - GL_ACCOUNT1
CURRENCYAMOUN (1..1)
--ITEMS(1..Outbound)
- - ITEMNO_ACC2
- - CUSTOMER2
- - GL_ACCOUNT2What is the problem you are facing, As i see for each row in your source , the target BAPI will be called.
-
PI 7.1 Multiple calls of BAPI
Dear all,
We have a file to RFC scenario; the file consists of multiple invoices which should be posted with BAPI_ACC_DOCUMENT_POST. As described in the Weblog of Michal Krawczyk (XI: IDoc bundling - the trick with the occurance change) I have exported the BAPI to an XSD and added the maxOccurs = " Unbounded".
However, when importing this changed XSD file as external definition the error: "Unable to recognize document as valid XSD Check the selected category" is raised. Any ideas?
Regards,
John.Make sure that while importing you have selected the xsd option and not wsdl which occurs by default.
Just creating the unbounded occurrence won't work in you case. You need to configure multimapping 1:N. This way there would be no need to export and import the RFC. You may directly change the occurrence from the Message tab in Message Mapping.
Regards,
Prateek -
Hi everybody,
I have a problem with multimapping. My scenario is:
FILE (Content conversion) -> PI -> BAPI
My source structure looks like:
but its not coming.
When i test with the source structure in message mapping didn´t work either, but if I add the tags Messages and Message1 it work out fine.
What is the solution?? should I add the tags with XSLT mapping? it doesn´t have to much sense to me, this should work properly without doing that...
Thanks in advance!Hi Luis,
exact about PI 7.1. Thanks for the lesson, I learned something today...
So to resume:
1. in I.R - Message Mapping, on tab "Signature", you have occurence : 1 --> 0..unbounded.
2. in I.R - Operation Mapping, you have occurence : 1 --> 0..unbounded.
3. in I.D - Interface Determination, for your bapi, you have Multiplicity = 0.. unbounded, as it's automatically found (based on I.R).
And when you process a source file, you have almost nothing in payload of your target Bapi.
Is that right ?
if yes, the only error that I see is an error in your Message Mapping, probably on node "Message1" or "bapi".
or eventually a problem of cache if you have recently change something in your flow...
Regards.
Mickael -
Hi all
we are trying to populate the data in a table in bapi from sap xi.
But in multiple items only last item is getting picked and it is ovelapping initial data.
Its a urgent project requirment .please answer asap.
All good answers will be rewarded.
with regards
mandeepMandeep,
1. As you are using a BAPI to make a call, you will need to use <i>Commit Control for Individual BAPI Calls</i> in the Advnced Section of the RFC adapter to make sude COMMIT is done from the BAPI call.
More on this link,
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
2. Do you need to trigger the BAPI for every RECORD or will a single call contain all the multiple Records?
If you requirement is that for every Record of your Source you need to call a BAPI, you will need a multimapping. More in this blog,
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Regards
Bhavesh -
Approach for JDBC MultiMapping?
Hi
Can any one tell me .
My scenrio like this ..n:1...sender having two database tables and target system is BAPI(R/3).Here I should do multimapping without any correlated fields in structure!
Outbound Inbound
<Message1> <Bapi>
table1 data
</Message1> </bapi>
<Message2>
table2
<Message2>
Would it be possible?
BPM is the possible solution for this?
Where do i catch exceptions in BPM?
Thanks in Advance...
Reards..Rambarkihey Rambarki,
i'm not sure how u want ure target message to look like. As far as i followed ure query,
these are ure reqmts:
ure source msg's structure:
<message1>
<table1data>
<table1data>
</message1>
<message2>
<table2data>
<table2data>
</message2>
and ure target's structutre:
<Message>
<message1>
(with same structure as source)
</message1>
<message2>
(with same structure as source)
</message2>
</Message>
To achieve this you need not necessarily have related fields(no correlation required).
This can be done by changing the occurrence of your
n-type source's message(Messagetype) in the message mapping from 1-1 to 0-unbounded.
Coming to exceptions..you can catch the exceptions by giving their names in the properties of
the transformation and send steps.
If you still have doubts, explain your query in greater detail and if your problem
has been solved, dont forget to assign points.
regards
sushumna -
Open Purchase Order UPload Using the BAPI 's
i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 Xi need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out using the BAIP's for upload the PO, i need sample code for this ........
Thanks & Regards
Raghu
<u>Field Name Field Description Type Length</u>
<b>EBELN Purchasing Document Number CHAR 010 X
BUKRS Company Code CHAR 004 MN10 C
EKORG Purchasing Organization CHAR 004 MN00 C
EKGRP Purchasing group CHAR 003 X
BSART Order type (Purchasing) CHAR 004 X
LIFNR Account Number of Vendor or Creditor CHAR 010 X
BEDAT Purchase Order Date DATS 010 X
ZTERM Terms of payment key CHAR 004 X
WAERS Currency Key CUKY 005 X
INCO1 Incoterms (part 1) CHAR 003 X
INCO2 Incoterms (part 2) CHAR 028 X</b>
EBELP Item Number of Purchasing Document NUMC 005 X
EMATN Material number CHAR 018 X
WERKS Plant CHAR 004 X
LGORT Storage location CHAR 004 X
EPSTP Item category in purchasing document CHAR 001 X
KNTTP Account assignment category CHAR 001 X
EINDT Item delivery date DATS 010 X
MENGE "Purchase order quantity (direct input, transfer of POs)" CHAR 013 X
MEINS Order unit UNIT 003 X
NETPR "Net price: Document currency (direct input, transfer of" CHAR 011 X
PEINH "Price unit (direct input, transfer of POs)" CHAR 005 X
BPRME Order Price Unit (Purchasing) UNIT 003 X
BPUMZ Numerator: Conversion OPUn into OUn (direct input of POs CHAR 005 X
BPUMN Denominator: Conversion OPUn into OUn (direct input of P CHAR 005 X
SAKTO Cost element CHAR 010 X
KOSTL Cost Center CHAR 010 X
VBELN Sales and Distribution Document Number CHAR 010 X
VBELP Sales document item NUMC 006 X
WEMPF Goods recipient CHAR 012 X
WEBTH "Amount in local currency (direct input, transfer of POs)" CHAR 013 X
WEBTF "Amount in document currency (direct input, transfer of P" CHAR 013 X
WEREF Flag for treatment of GR/IR (direct input of POs) CHAR 001 X
SPINF Indicator: Update info record CHAR 001 X
WEPOS Goods Receipt Indicator CHAR 001 X
REPOS Invoice receipt indicator CHAR 001 X -
URGENT: Function modules or BAPIs
Hi Experts,
I need function modules or BAPI to get the open items and cleared items G/L Account wise.
Useful replies will be surely awarded.Hi Chakradhar,
Check tcode : BAPI
u will get all bapis there.
Regards,
Hemant -
Questions on BPS BAPI calls and PDF forms
I will need to create a button on a BPS form and that button is supposed to call a BAPI. One of the buttons will create a PDF of the form (using the contents of the form) and print said form to a 'default' printer. The issue is that not all cFolder users will have an ECC logon name. What am I to do in this instance? Will I need to pass some type of credentials to the ECC backend in order to run this BAPI?
Also, how can I get the contents of the form(s) to the BAPI? I assume that I will need to create the PDF in the code of the BAPI. Please be patient with me as this is my first time to work with cFolders and/or BPS.
Regards,
DavisHi Davis,
Well, if you are able to log on the BPS application (thus, a Web Interface if I'm not mistaken) then it means that some user is logged on the ABAP-side. It is either a "personal" user or a technical (common) user, that is used for anonymous access.
You will certainly be able to track down this user with the SM04 transaction.
You should be able to add a button to the BPS page. One idea would be to call an URL with an ICF service behind that will be able to process the parameters contained in this URL.
It will be this very ICF service that will call the BAPI.
Try these links
http://help.sap.com/saphelp_nw04s/helpdata/en/55/33a83e370cc414e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ea8db790-0201-0010-af98-de15b6c1ee1a
Hope this helps.
Best regards,
Guillaume -
Deletion of Scheduling Agreement and Delivery Schedule using BAPI
Hi SAP MM Gurus,
Please assist in inquiry below:
My scenario is that I am trying to delete delivery schedules and scheduling lines using BAPIs. I have no issues when there is no GR made yet for the delivery schedules. The error arises when there are already existing Goods Receipts and Invoices for the schedule line that I wish to delete
When using the BAPIs (either BAPI_SAG_CHANGE or BAPI_SCHEDULE_MAINTAIN), I set the deletion indicator to "L" and set to X all change relevant fields (i.e. DELETION_INDX). However, whenever I execute it, I get the error message 06088. The funny thing is both the Quantities and the delivered quantities that are normally populated are left blank.
For example:
Normal error for 06088:
Quantity 100.0 smaller than quantity delivered 179.0
Error using BAPI with deletion indicator:
Quantity smaller than quantity delivered
Is this a bug of the BAPI? or am I just missing some settings?
Your immediate response is appreciated
Regards,
DeLoHi,
Please find the below link check the setting are correct or not
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
Reagrds,
Pramod -
BAPI for training and event management
Hi all,
I need a bapi that returns the list of the attendees of a training course.
I've seen that a FM exists: RH_GET_PARTICIPANTS and i know how it works.
I would like a standard BAPI to be called by an external system.
If it doesn't exit I will create a remote FM that calls the RH_GET_PARTICIPANTS.
thanks
enzoHi Enzo,
I don't think there is a BAPI.. but you can create one using the Method 'Display Attendance' for the 'Attendance' Business Object (PDRELA_025) in Tcode BAPI. But I think creating an RFC that in turn calls RH_GET_PARTICIPANTS is the easy way out.
Regards,
Suresh Datti -
Hi guys,
While scheduling a BAPI(ZBAPI_WS_REPORT ),am gettin an error msg says Program ZBAPI_WS_REPORT is invalid or does not exist,even though it exists in the target client.What could be the problem?Please help me out in this regard asap.Its very urgent.
Surely points vl b rewarded.
Warm Regards,
Mohandoss P.You need to call that BAPI into your report and then you have schedule that report.
I hope it helps.
Let me know if any doubts.
Thanks,
Vibha
Please mark all the useful answers -
BAPI Error: No account assignment exists for service line 0000000000
I am using BAPI : BAPI_PO_CREATE1 to create a PO.
I am getting this error while creating PO "No account assignment exists for service line 0000000000"
Please help.Yes...
for each item i am creating one parent service record and one child service record with REQUISITION_SERVICES.
the Package no for parent is the subpackage no for child.
also for each item, I fill REQUISITION_ACCOUNT_ASSIGNMENT and REQUISITION_SRV_ACCASS_VALUES
Still I get the Error.
Thanks to help me resolve. -
Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery
Hi Friends,
GRNs (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
If PO Number = EKKO-EBELN GR against Purchase Order
= LIKP-VBELN GR against Outbound Delivery
Based on the above condition I need to create a Goods Receipt.
Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
The fields available are with us are...
Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number SLED
Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
Please provide sample code if possible.
Waiting for replies,
Thanks and Regards,
SudhaHi Friends,
GRNs (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
If PO Number = EKKO-EBELN GR against Purchase Order
= LIKP-VBELN GR against Outbound Delivery
Based on the above condition I need to create a Goods Receipt.
Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
The fields available are with us are...
Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number SLED
Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
Please provide sample code if possible.
Waiting for replies,
Thanks and Regards,
Sudha
Maybe you are looking for
-
After Effects CC 2014 crashing on startup
I downloaded the trial version of After Effects. By downloading it, it activated a 30-day trial. However, every time I try to start up the program, it gives me an error and crashes. I read on the forums issues about fonts and OpenGL, but it doesn't e
-
Upgraded from iWeb 06 to 08, and now web address and links don't work
Hi there, I recently had the hard drive of my computer replaced and the Mac shop automatically upgraded iWeb 06 to iWeb 08, without asking me (and they also upgraded iPhoto)... I didn't think anything of it and went home. The next time I tried to upd
-
I got an iPod touch 1st generation and downloaded loads of apps, some paid some free. A few weeks ago I restored the iPod touch and when I went to download apps that I had already owned it said I needed a newer iOS. It says I need iOS 4.3 and I have
-
Undelete Purchase order line item
Good day, Is it possible to undelete a deleted purchase order line item? If yes, how can I establish this? Thanks & regards, Christel Smolders
-
Unable to renew developer license from vs2013
this is what i get whenever i tried to renew my license . though it was working before installing vs2013 update 4 . whats wrong? ive also reset all vs settings and uninstall and installed again but not working.:( can anyone there to help me. binodtam