Skip to Content
0

In the File-to-Idoc Scenario, Idoc segment field contains BLANK value in the target system

Apr 10 at 07:02 AM

55

avatar image
Former Member

In the File-to-Idoc Scenario, the idoc is creating correctly in the target system but the idoc segment fields have BLANK value only for the fields which are mapped to source fields.

If the idoc segment field is mapped with constant, then it contains constant value in the target system. But if the idoc segment field is mapped with source field, then it contains only BLANK value.

Message Mapping:

The idoc is creating correctly in the Message Mapping without any issue.

Send Test Message:

Also, idocs are creating without any issue using Send Test Message via Payload

End-to-End testing:

But, in the end-to-end testing, the idocs are creating with BLANK value in the target system for the fields which are mapped to source fields.

Source structure :

<field1>

<field2>

<field2>

Target structure :

E1EDKA1 segment:

--> SEGMENT

--> PARVW

--> PARTN

Mapping :

E1EDKA1 segment:

--> SEGMENT = constant value as 1

--> PARVW = constant value as 'LF'

--> PARTN = Source field <field1> mapped to this field

O/P:

E1EDKA1 segment:

--> SEGMENT = 1

--> PARVW = 'LF'

--> PARTN = <BLANK>

Kindly give your help to fix this issue.

Please let me know if you need more details.

Many Thanks

MP

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Anoop Rai Apr 10 at 07:12 AM
0

Hi,

Is your source message has multiple node with field1 name? Is source node contain value or not?

Can you provide screen shot of msg. mapping for more clarity?

Regards,

Anoop Rai

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Is your source message has multiple node with field1 name? No.

Source Structure (Input):

<?xml version="1.0" encoding="UTF-8"?>

<Root>

<Date>24012018</Date>

<Time>13:04</Time>

<Customer>9921</Customer>

<Plant>34</Plant>

<Std>1</Std>

</Root>

Target Idoc (Output):

<?xml version="1.0" encoding="UTF-8"?>

<ORDERS05><IDOC BEGIN="1">

<PARVW>LF</PARVW><PARTN></PARTN></E1EDKA1>

</IDOC></ORDERS05>

Many Thanks

MP

0

Hi,

Map Root of source to IDOC of target. Rest everything is okay.

Also make it sure that Root node must be in place of source message.

Regards,

Anoop Rai

0
Manoj K Apr 10 at 07:08 AM
0

You may use Graphical variable and useoneasmany if you want to map the same source field value to multiple target fields.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Manoj

Thanks for your quick reply.

I have created 1-to-1 mapping only. If i mapped with constant value, its working fine. But if i mapped with source field, the value is not appearing in the idoc (even for a single idoc segment field).

Many Thanks

MP

0
Former Member

Yes it does not, because the value from source field is coming only once hence it will be populated only in first context in target if you want the same value to be populated in multiple target nodes then you may use graphical variable and useoneasmany.

Br,

Manoj

0
Former Member

Hi Manoj,

the source field is not mapped to multiple target field.

For example,

Date field from source -> mapped to target field -> E1EDK03-DATUM : The source value is not updated in the target field

001 -> constant value mapped to target field -> E1EdK03-IDDAT - The source (constant) value is updated in the target field correctly.


Many Thanks

MP

0
Sanjali Salian Apr 10 at 10:10 AM
0

Hi MP,

This is strange, can you confirm when you perform the end to end testing, the sender payload consists of source values which are mapped to the receiver segment fields?

Regards

Sanjali

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Yes Sanjali

0

Could you enable the run time log and check in the AM step if its mapping okay ?

0