How to execute tSapBapi multiple times with different inputs

How to execute tSapBapi multiple times with different inputs

Hi Team,
Is there any way we can execute tSapaBapi multiple time wherein we should be able to provide different input value?
Regards
Akanksha
Seventeen Stars

Re: How to execute tSapBapi multiple times with different inputs

Yes it is in a bit cumbersome way:
tFixedFlowInput --(flow)--> tFlowToIterate --(iterate)--> tJava --(OnComponentOk)--> tSAPBapi
The tJava component is actually only a kind of anchor and has none logic or necessary configuration at all.
In the tSAPBapi you have to use the return values provided from the tFlowToIterate component. 
One Star

Re: How to execute tSapBapi multiple times with different inputs

Yes it is in a bit cumbersome way:
tFixedFlowInput --(flow)--> tFlowToIterate --(iterate)--> tJava --(OnComponentOk)--> tSAPBapi
The tJava component is actually only a kind of anchor and has none logic or necessary configuration at all.
In the tSAPBapi you have to use the return values provided from the tFlowToIterate component. 

I have the same issue, however the tSAPBapi can not accept tJava (onComponentOk), I'm using 6.0.1 Talend Integrater
Seventeen Stars

Re: How to execute tSapBapi multiple times with different inputs

Yes, sorry I forgot a tJava.
tFixedFlowInput --(flow)--> tFlowToIterate --(iterate)--> tJava --(OnComponentOk)--> tJava --(OnSubjobOk)--> tSAPBapi
Both tJava are necessary to have a call per row of he input flow.
One Star

Re: How to execute tSapBapi multiple times with different inputs

Is it possible to use the same sequence of components for a tSAPInput?
(you can see my full post with id=49168)
TIA,
  Vince
One Star

Re: How to execute tSapBapi multiple times with different inputs

Hi jlolling
I am facing some issue with tSAPBapi.
I am using Talend 6.2.1 Enterprise version (Free trial)
Can any one please explain me how to send row in tSAPBapi if it is required to pass a table as input parameter
Please explain with example to pass a table in input to tSAPBapi
Thanks in advance
Following are my job screenshot...
I am getting following error...
Exception in component tSAPBapi_2_TSAPBapi_OUT
SAPException@51b279c9
at org.talend.sap.exception.SAPException$Builder.<init>(SAPException.java:269)
at org.talend.sap.exception.SAPException$Builder.<init>(SAPException.java:264)
at org.talend.sap.exception.SAPException.newBuilder(SAPException.java:74)
at org.talend.sap.impl.model.bapi.SAPBapiTemplate.processXmlNode(SAPBapiTemplate.java:317)
at org.talend.sap.impl.model.bapi.SAPBapiTemplate.processXmlRoot(SAPBapiTemplate.java:255)
at org.talend.sap.impl.model.bapi.SAPBapiTemplate.setXml(SAPBapiTemplate.java:117)
at talendtestrfc.rfctest_0_1.RFCTest.tFixedFlowInput_1Process(RFCTest.java:3561)
at talendtestrfc.rfctest_0_1.RFCTest.runJobInTOS(RFCTest.java:6768)
at talendtestrfc.rfctest_0_1.RFCTest.main(RFCTest.java:6602)
: talendtestrfc.rfctest_0_1.RFCTest - tSAPBapi_2_TSAPBapi_OUT null

Seventeen Stars

Re: How to execute tSapBapi multiple times with different inputs

No I cannot, I am not very experienced in the SAP stuff. I suggest you ask the support. Talend provides support also for the trail versions.
One Star

Re: How to execute tSapBapi multiple times with different inputs

Ok
Thank you