cancel
Showing results for 
Search instead for 
Did you mean: 

How to send blank Idoc field in SAP R/3

former_member196519
Participant
0 Kudos

HI Team,

Could you please suggest how I can send blank field in to Idoc? I can see blank value in Idoc XML in SXBM_MONI but it does not come in R/3. Only those fields come in the Idoc in SAP  R\3 who has value.

- <ZE1P0021 SEGMENT="">

<FAMSA />

<FAVOR>abcd</FAVOR>

<FANAM>cefg</FANAM>

<SUBTY />

<PERID>043681742</PERID>

<FGBDT>10031989</FGBDT>

<FASEX>1</FASEX>

</ZE1P0021>

Thanks,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Kumar,

May be you are sending empty contexts but the Inbound Program at SAP side has logic to ignore empty fields. They must have some logic. So if you want to keep them, you need to write/change logic at SAP side Inbound program.

Answers (3)

Answers (3)

ambrish_mishra
Active Contributor
0 Kudos

Hi Kumar,

Populate the field with a forward slash and try.

I think if the value exists in the underlying table, it should overwrite it. I am not 100% sure but please check once.

Hope it helps

Ambrish

ambrish_mishra
Active Contributor
0 Kudos

Hi Kumar,

Although the thread is marked answered, I just wanted to confirm on the use of forward slash in case of IDocs.

If you populate a forward slash in PI for a field, then the value of the field in the underlying table will be retained and not overwritten. In case you want it to be overwritten, then you may populate a space in PI and it should work.

Hope it helps!

Ambrish

pedro_baroni3
Active Contributor
0 Kudos

Hi Kumar,

You can send a Constant "" or " " to the blank fields in Message Mapping. Your message will be different:

              - <ZE1P0021 SEGMENT="">

              <FAMSA><FAMSA />

              <FAVOR>abcd</FAVOR>

              <FANAM>cefg</FANAM>

              <SUBTY><SUBTY />

              <PERID>043681742</PERID>

              <FGBDT>10031989</FGBDT>

              <FASEX>1</FASEX>

              </ZE1P0021>

Regards.

rajasekhar_reddy14
Active Contributor
0 Kudos

You cann't,even if you map with defulat blank spaces it wont work.

If you want blank value then fix code at ECC end.