Sap Idoc Lookup
Hello Gurus,
How can I get data from an IDOC segment that is not linked to my Master segment as a parent-child.
Would it be in some way possible using repeating segment rules? I tried that, but only the left hand side has a drop down for segment and segment field, the right hand only has criteria. I'm not sure how to refer to another segment field in the criteria field..
Would it have to be done using VB script. Is there some sample code you can share with me?
I could extend the SAP IDOC to have all the label fields in 1 segment, but that would mean future maintenance in SAP .
If there is some way this can be done using Bartender itself, that would be great.
Just as an FYI, I do have a field common in both the segments..
Like for example 1 segment X has the following fields...
Material #, Qty
and segment Y has the following fields
Material #, Material Description
Segment X and Y do have have a parent child relationship, but occur on the same level on the IDOC
and there could be multiple segments for X and Y, because there could be multiple materials on the IDOC.
So I need to be sure that I am printing the correct Description on the label.
I have segment X as the master segment, but I need some way to read all the segment Y's and pick up the Material Description only from the segment Y that has the same Material # as the Material # from Segment X.
Thanks in Advance.
0
-
Hello,
Unfortunately, the IDOC setup as described by you will not work for what you want. Segment Y really needs to be a child segment of Segment X, or as you've suggested, you will need to have all the fields in one segment.
Sorry for not having a better suggestion / solution, but this is due to how Idocs are structured.
0 -
Hello,
I still did not get it. If I have 2 segments with multiple records/child segments inside each of them. I make one of these segment as Master in Bartender and need to find unique segment from other one based on value inside of the field. So I need to create Repeating segment rule like "E2EDL44004.CHARGE = E2EDL24007.CHARG". How can I reference to the field instead of typed-in constant?
0
請登入寫評論。
評論
2 條評論