on 08-04-2008 2:44 PM
Hi All,
I am trying get the data from SAP Database table "MDKP" and insert into the oracle database.
I am doing in this way....
Can you all check and let me know if there is any thing wrong in my logic
What I did is I took the plant number and put into the repeater
Add JCO as a second action and give the RFC_READ_TABLE
1.SAPJCOInterface_0.Request{/RFC_READ_TABLE/INPUT/QUERY_TABLE}="MDKP"
2.SAPJCOInterface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER}=","
3.SAPJCOInterface_0.Request{/RFC_READ_TABLE/TABLES/OPTIONS/item/TEXT}="PLWRK EQ ' #Transaction.Plant# ' "
4.SAPJCOInterface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}=Local.FILEDS
and then I added StringListtoXML
Links are 1.StringListToXml_0.Input=SAPJCOInterface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item/WA}
2.StringListToXml_0.Delimiter=","
and the next Action is SQl Qury to insert the data
IllumSQLQuery_0.Param.1=StringListToXml_0.Output{/Rowsets/Rowset/Row[1]/Item}
IllumSQLQuery_0.Param.2=StringListToXml_0.Output{/Rowsets/Rowset/Row[2]/Item}
Thanks
R M
RM,
It depends on ther Xpath you configured with the Repeater.
For example, "PLWRK EQ '#Repeater_0.Output{/Item/Plant}#'"
If the RFC is returning multiple records and if you want to post all of them, you should use another Repeater action block with Xpath as 'Response{/RFC_READ_TABLE/TABLES/DATA/item}' and
then
StringListToXml_0.Input= '<<your WA repeater>>.Repeater.Output{/item/WA}'
StringListToXml_0.Delimiter=","
Then the SQL Query action block.
Mike, "PLWRK EQ ' #Transaction.Plant# ' " would work. Please correct me if there is any disadvantage.
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
Thanks for the reply.
I did not get in the link editor. StringListToXml_0.Input= '<<your WA repeater>>.Repeater.Output{/item/WA}'
I have only StringListToXml_0.Input= Repeater.Output{/item/WA} and I dont have the First repeater <<your WA repeater>>.
Could you please let me know what is that.
Thanks
Raghav
Since you are working in the link editor, you should probably change:
"PLWRK EQ ' #Transaction.Plant# ' "
to this:
"PLWRK EQ " & singlequote & Transaction.Plant & singlequote
Other than that, I didn't see anything which wouldn't work. And I don't know that what you had wouldn't work. I didn't test it. It just looks awkward.
If you have problems, you may want to see what the inputs in the Request segment are being defaulted to by using a tracer. You may need to remove some of the Request segments if the defaults are affecting your results.
Good luck,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.