Skip to Content
author's profile photo
Former Member

Complex Mapping

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Sep 06, 2008 at 04:49 AM

    Hi,

    Using length function you can find the string length of source field.

    Like,

    Vendor_Amt Length Greater(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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 06, 2008 at 05:12 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.

    Add comment
    10|10000 characters needed characters exceeded