on 09-25-2008 10:07 AM
Hello Friends,
I have scenario where i have to call 2 BAPI's. The input is supplied from file.
Once i read the input, i have to call
BAPI_INCOMINGINVOICE_GETLIST
Once this BAPI returns me the invoice number and fiscal year, i have to call
BAPI_INCOMNGINVOICE_GETDATA for each invoice number and generate individual file for each invoice.
For the above case, i am using BPM. And i have worked out till collecting the invoice number and fiscal year.
Once i collect these data from first BAPI, how to proceed for calling second bapi for data in BPM.
Any help is appreciated.
Thanks,
Ramesh
Hi Ramesh,
you just need to maintain a second transformation step (optional) and a second send step in the BPM. just use the container element where you saved the response from the first BAPI.
Regards
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Instead of calling the BAPIs in two distinct send steps of BPM what you can do is you can use RFC look up for first BAPI and then use a send step for the second BAPI.
If both the BAPI's are of the same R3 then you can write an RFC and call both the BAPI's in the same RFC and pass the output of the first BAPI to the second within the RFC.
This will improve your performance as the interaction between R3 and BPM is reduced.
regards,
Milan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello all,
for the above scenario i have designed the bpm as follows
start -> receive step -> send step1 -> container ->Block for each -> send step2 -> send step3 -> Stop.
send step is calling the bapi. But i am not sure whether the response from the bapi is collected in container, from Block step it is failing to error.
error. An empty container element was specified when sending
I am not sure, why the container is not storing any of the response or send the from the container
Any help appreciated
regards
Ramesh P
Hi Ramesh,
Your structure in which you are collecting invoice number will have occurence 0...unbounded.
Now take a block set its mode to ForEach. It will ask you for the Multiline Container and cureent line Container in the Step Property. so you have to have two container variable one will be of multiline and other will be single line and both will refer to the same message interface.
use containers to provide "for" condition so that it will process that many messages.
Also you shld know the number of invoices returned by your Bapi for that you use transformation step before calling second bapi whose mapping will return you the number of invoices created.
Thanks
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.