on 07-26-2016 2:45 PM
Hi all
We have an existing interface file to Idoc (DESDAV).
At present though multiple line items has same Material and same Sales Order quantity is received in each segment.
New requirement is to add Quantity.
Example:
Input:
Order1 Material1 2(Quantity)
Order1 Material1 5(Quantity)
Order4 Material3 1
Order5 Material3 10
Output:
Order1 Material1 7(Quantity)
Order4 Material3 1
Order5 Material3 10
Idoc:
E1EDL24
KDMAT (Material)
LFIMG (Quantity)
E1EDL41
BSTNR (sales order)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this, it has the similar requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anitha,
I was able to accomplish the adding using the following graphical mapping and input/output structure with one small UDF. Here are the screenshots of the structure, the mapping and then the code for the UDF.
addValues UDF Code -
int num = 0;
for(int i = 0; i < var1.length; i++) {
num += Integer.parseInt(var1[i]);
}
result.addValue(num);
Regards,
Ryan Crosby
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.