Skip to Content
avatar image
Former Member

FCC to IDoc in PI 7.31 Single stack

Hi Experts,

Currently we are working on PI 7.31 single stack and my scenario is CSV to IDoc where the sample file will have first row with heading for each column and each line item should be transformed to XML and should be posted as an DELVRY07 IDoc to ECC system and I followed the below steps :

1. Done SLD set up accordingly and imported the business sys to ID of PI and Imported the IDoc to ESR as external definition after changing the cardinality to 0..unbounded.

2. Used the IDoc_AAE receiver with manual type & Control record in IDoc XML is "Not Mandatory" and apply control record is disabled and also the mandatory fields in control record are mapped with constants like segment with 1, accordingly and I get the following error:


Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error during transform: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable chars.


Since the receiver is IDoc with which is of external definition also I try to create Business component and replace the business system with Business component and assign the adapter specific Identifiers to business component it pops up the the destination and system are already in use as shown in the screen shot & also I cannot remove the adapter specific identifier in the business system since it is also used in the Outbound scenario also. Pls find the below screen shots of errors & required ones.

Kindly suggest me to solve the issue or other ways with out BPM to achieve the requirement,Thanks!

-Nithin.


Screenshot005.jpg (69.8 kB)
Screenshot004.jpg (41.4 kB)
Screenshot007.jpg (19.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Dec 18, 2015 at 07:43 AM

    Hi Nithin,

    Dont use external definition for IDOCs, reference imported IDOC in message mapping, operation mapping and in ICO.

    Check below SAP Note.

    1862655 - NullPointerExceptions during IDoc_AEE Receiver Adapter processing


    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 18, 2015 at 08:55 AM

    Hello Nithin,

    Import the IDOC from SAP system and use the same in

    1.Message mapping

    2.Operation mapping

    If you still face any issues,let us know.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2015 at 09:39 AM

    Hi Raghu,

    Yes it works now, thank you!

    But I see the status on ECC as 51 still I am doubtful whether the constant values mapped to fields of control record of the IDoc casued on any problem ? I mapped the TABNAM field with constant value EDI_DC40 and ignored the field EDI_DC40 of control record of IDoc.

    Thnx,Nithin.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2015 at 10:33 AM

    Raghu,

    I mean IDoc is in 51 status , Only four fields are mapped in data record of IDoc i.e, VBELN, VKORG, VKBOR,VSBED just to check the connectivity b/w PI and ECC, pls find the below snippet:

    -Nithin.


    Screenshot006.jpg (57.1 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2015 at 06:19 AM

    Hi Raghu,

    Any idea what should be the cause for the data issue here?

    Thanks in advance!!

    -Nithin.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2015 at 07:16 AM

    Hi Raghu,

    Thanks! and it means no changes to be done from PI end right?

    -Nithin.

    Add comment
    10|10000 characters needed characters exceeded