Skip to Content
avatar image
Former Member

Sending text to Standard IDOC

Hello Experts,

My scenario is SOAP-IDOC,my client will send the text with 1000 characters or more than that,now I need to read the text and pass it to ECC using a field called TEXT_LINE having 132 character length  with occurence 0..1 which is  inside a segment   E1BPMEREQITEMTEXT(with occurence 0...999999999).

Please suggest on how to send the text to ECC using PI.

Note:This is a PR,using the standard IDOC PREQCR1.PREQCR101 and PI version is 7.1

Regards,

Kalpana.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 03, 2015 at 11:05 AM

    Hi Kalpana,

    Your requirement can be achieved using a context type UDF. Here is a sample code that splits strings into 4 characters per line. You can modify it by replacing all number 4's with 132

    Here is a sample mapping

    display queue

    mapping test tab output

    Hope this helps,

    Mark


    Test.png (22.5 kB)
    Test.png (18.8 kB)
    Test.png (16.9 kB)
    Test.png (30.1 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 06, 2015 at 09:21 AM

    Hi Mark,

    Thanks for your reply,it worked perfectly 😊,but  the concern is the  segment E1BPMEREQITEMTEXT works in a condition based on PRLINE as shown below,

    please suggest on how to club the existing logic and the new logic

    Regards,

    Kalpana.


    PI_Mapping.PNG (7.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kalpana,

      After the createIf node function, use IFWITHOUTELSE boolean function, passthe createIf output to the IF part, for the then part, pass the output of splitstring function as mentioned by Mark.

      Try this out and let us know if you struck anywhere.

      Regards

      Vishnu

  • avatar image
    Former Member
    Jul 06, 2015 at 01:49 PM

    Hello All,

    Thanks for your reply.

    The  ABAPer has come with the new idea, instead of passing PRLINE to the segment,

    PRLINENUM should get  passed to PREQ_ITEM which is present in the same segment(E1BPMEREQITEMTEXT).

    Below is the mapping Strucuture for PREQ_ITEM.

    As suggested,I did the mapping in two ways as shown below.

    While testing,the PREQ_ITEM occurs only one time.

    As this PREQ_ITEM is mandatory field,this has to be passed.

    Please Suggest on how to take this forward.

    Regards,

    Kalpana.


    PI_Mapping.PNG (11.2 kB)
    PI_mapping_2.PNG (48.0 kB)
    PI_Mapping_3.PNG (22.0 kB)
    PI_mapping_2.PNG (48.0 kB)
    PI_mapping_4.PNG (39.7 kB)
    PI_mapping_5.PNG (41.6 kB)
    PI_mapping_6.PNG (21.2 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for your reply,my issue is resolved using UseoneAsmany function,passed the input of  PRLINENUM and Splitstring UDF to UseoneAsmany and mapped to PREQ_ITEM,it worked.



      Regards,

      Kalpana