on 09-05-2008 11:08 PM
Hi,
I've unique requirement. It's a ECC - Idoc to R/2 Idoc scenarion.
The requirements are :
At source side I've two fields Vendor_Amt and VAT. At target side Idoc has fixed no of line Items (251)
Now if Vendor_Amt has more than 7 digits (Including decimals ) then divide them by 2 and check the resulting amount. If the resulting amout is again >7 digits then divide by 3 and check again..and so on.
Once this is complete, divide the VAT with the same u201Cdividing factoru201D used for Vendor_amt.
same time at target side I have to check If the total no of line items at source side is increased more than 251 then I've to split it into another Idoc structure.
Please follow this link for the example.
http://www.freeimagehosting.net/image.php?217543f548.jpg
Any suggestion appreciated.
Regards,
Chintan.
Edited by: chintan patel on Sep 6, 2008 12:08 AM
for no. of digit validation you can use UDF.
and for validation of detail line item > 251 and break it further either you have to use BPM or put the logic at source system prog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Using length function you can find the string length of source field.
Like,
Vendor_Amt LengthGreater(Function)-If(then)--Div(Function)-Constant(2)
Constant(7)
The below links will help you..
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4052] [original link is broken] [original link is broken] [original link is broken];
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3468] [original link is broken] [original link is broken] [original link is broken];
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.