cancel
Showing results for 
Search instead for 
Did you mean: 

FCC to IDoc in PI 7.31 Single stack

Former Member
0 Kudos

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.


Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Raghu,

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

-Nithin.

former_member186851
Active Contributor
0 Kudos

Yes Nithin,its a data issue,

You can once verify as well all the control records are fine.

Former Member
0 Kudos

Hi Raghu,

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

Thanks in advance!!

-Nithin.

former_member186851
Active Contributor
0 Kudos

Hello Nithin,

Any values that doesn't match in the IDOC while creating application document.

Functional team can help you more on that.

Former Member
0 Kudos

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.

former_member186851
Active Contributor
0 Kudos

Hello Nithin,

Based on the screenshot seems like Idoc is succesfull but document not posted this might be due to data issue.

Former Member
0 Kudos

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.

former_member186851
Active Contributor
0 Kudos

why u Ignored Nithin?

And for which field the error is throwed in BD51?

former_member186851
Active Contributor
0 Kudos

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.

former_member182412
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Praveen,

As u know my scenario is CSV to IDoc where CSV has multiple line items where each line item should be posted as an individual IDoc so I changed the cardinality and re-imported it as External definition. Pls suggest me any other ways to achieve this.


Thnx,Nithin.

former_member186851
Active Contributor
0 Kudos

Nithin

you can change the occurence of IDOC in the signature tab of mapping to 0-unbounded.

former_member182412
Active Contributor
0 Kudos

Hi Nithin,

As Raghu mentioned you need to change the occurrence of IDOC to unbounded.

Check below thread for more detail.

Regards,

Praveen.

Former Member
0 Kudos

Hi Praveen,

Yes it worked now, the IDocs reached ECC but in 51 status.I actually mapped below constants to the fields of control record of IDoc as per screenshots here. Is the error status 51 has relation with constant values that are mapped to fields of control record.

Thnx,Nithin.

former_member182412
Active Contributor
0 Kudos

Hi Nithin,

Status 51 means it is data related issues, you can find more information when you open the idoc.

Regards,

Praveen

former_member186851
Active Contributor
0 Kudos

This should work Nithin.

For which field ur getting error in BD51