cancel
Showing results for 
Search instead for 
Did you mean: 

Field is not populated in IDOC receiver adapter.

Former Member
0 Kudos

Dear All,

I have scenario: File --> XI --> IDOC.

I'm using ABAP Mapping to map from source (file) to target (idoc).

I tried the scenario and here is some part of the payload that i got from XI:


- <_-POSDW_-E1BPLINEITEMDISCOUNT SEGMENT="1">
  <RETAILSTOREID>S303</RETAILSTOREID> 
  <BUSINESSDAYDATE>20090528</BUSINESSDAYDATE> 
  <TRANSACTIONTYPECODE>5001</TRANSACTIONTYPECODE> 
  <WORKSTATIONID>1</WORKSTATIONID> 
  <TRANSACTIONSEQUENCENUMBER>49349</TRANSACTIONSEQUENCENUMBER> 
  <RETAILSEQUENCENUMBER>10</RETAILSEQUENCENUMBER> 
  <DISCOUNTSEQUENCENUMBER>10</DISCOUNTSEQUENCENUMBER> 
  <DISCOUNTTYPECODE>ZD01</DISCOUNTTYPECODE> 
  <REDUCTIONAMOUNT>0.65</REDUCTIONAMOUNT> 
  </_-POSDW_-E1BPLINEITEMDISCOUNT>

I checked the generated IDOC and this is the result:


RETAILSTOREID	S303
BUSINESSDAYDATE	20090528
TRANSACTIONTYPECODE	5001
WORKSTATIONID	1
TRANSACTIONSEQUENCENUMBER	49349
DISCOUNTSEQUENCENUMBER	10
DISCOUNTTYPECODE	ZD01
REDUCTIONAMOUNT	0.65

RETAILSEQUENCENUMBER field is missing from the idoc even though it was there in the payload.

I have tried to delete the IDOC metadata in IDX2, tried to re-import the IDOC in the IR and same result i got.

Kindly advise what's to check?

And do anyone know what is actually xi do to convert from the payload become idoc?

Can we debug this??

Best Regards,

Victor.

Accepted Solutions (0)

Answers (2)

Answers (2)

sunilchandra007
Active Contributor
0 Kudos

Hi,

Chech the ABAP code you have written for ABAP mapping. It seems there is something missing while mapping the node RETAILSEQUENCENUMBER in your code. Change the code and test the mapping using transaction SXI_MAPPING_TEST.

Regards,

Chandra

Former Member
0 Kudos

Hi Sunil,

If something wrong in the ABAP Mapping then RETAILSEQUENCENUMBER won't be populated in the payload. In my case i can see the field generated in the payload only when it come to idoc the field is missing.

Thanks,

Victor.

former_member200962
Active Contributor
0 Kudos
In my case i can see the field generated in the payload only when it come to idoc the field is missing.

Check this similar discussion...

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek,

I tried to refresh the cache and the issue still there.

Any other solutions?

Thanks,

Victor.

Former Member
0 Kudos

test the IDoc from WE19 with the missing value and see the program works

the cache refresh may take some time too...

prasad_ulagappan2
Contributor
0 Kudos

just a thought...u just try to make it as file to file..and see if the field is coming or not...if its there, then we can confirm that there is some issue with idoc...if not, we can start analysing the debug...

Former Member
0 Kudos

Hi Prasad,

For sure it will come if i change it become file to file since in the payload itself that field is generated.

Thanks,

Victor.