Skip to Content

File with variable structure how to define the FCC parameters for it?

Hi all,

I have a scenario which is File to IDOC

and file structure is in this way

Header:

HDR|ROSS-Daily-Inv|20111104

Data :

INV|01|059EMS|107128|20111104|USD|21703|IN|1| 0.00| 0.00|60-5B-30| 600.00|VIAL|0.00|0.00|EM||NETDUE|CLINIC|Y||490000

TOT|01|059EMS|107128||USD||||0|0

INV|01|EXB001|107130|20111104|USD|02420|IN|1| 823600.00| 823600.00|| 580.00|VIAL|0.00|0.00|||NET30|COMM|N||

TOT|01|EXB001|107130||USD||||823600|823600

Trailer:

TLR| 6| 1382679.00

can any help me defining the Datatype for this structure and FCC parameters

Thanks

Sai

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 09, 2011 at 08:25 AM

    Hi,

    In Sender CC, use content conversion and especially these options:

    ¤ RecordSet Structure = Header , 1 , Data1 , * , Data2 , * , Footer , 1

    ¤ Key Field Name = MyKey

    ¤ Namea.keyFieldValue, to distinguish your different structures (records).

    for instance, like that:

    Header.keyFieldValue = HDR

    Header.fieldName = MyKey , xxxxx, yyyy

    Data1.keyFieldValue = INV

    Data1.fieldName = MyKey , xxxxx, yyyy

    Data2.keyFieldValue = TOT

    Data2.fieldName = MyKey , xxxxx, yyyy

    Footer.keyFieldValue = TLR

    Footer.fieldName = MyKey , xxxxx, yyyy

    Otherwise, in SDN with term "recordset" you will find some blogs...

    Regards.

    Mickael

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 09, 2011 at 07:54 AM

    Please try considering the values as String type and do normal FCC conversion.Refer the link below for more info

    http://help.sap.com/saphelp_nw04/helpdata/EN/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 09, 2011 at 08:39 AM

    Hi Sai,

    You can create the data type like this

    ABC_DT

    Header

    f1

    f2

    f3

    BODY

    f1

    f2

    ..

    ..

    f33

    TRAILER

    f1

    f2

    f3

    For FCC parameters in communication channel Content Conversion ( The Key Field Problem )

    Regards,

    Venkata Ramesh

    Add comment
    10|10000 characters needed characters exceeded