cancel
Showing results for 
Search instead for 
Did you mean: 

Creating SDATA value of IDOC

shaji_chandran
Participant
0 Kudos

Hi

I am trying to create an IDOC in MII 12.1. IDOC is having a tag known as SDATA where we put all the values. For each field in SAP there is a column length. If our value for the field is less than the maximum length of the column we put a space for rest of the length. I am adding this space in MII using some string method which takes more time. Does anyone have any idea of adding this space more smartly. Please let me know

Thanks in advance

Shaji

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have used xsl to do this.

[|]

shaji_chandran
Participant
0 Kudos

Hi Christian ,

Yes I tried with XSLT also but it is taking same amount of time as stringreplace method of MII expression editor.

Thanks

Shaji

Former Member
0 Kudos

Hi,

You said "If our value for the field is less than the maximum length of the column". Is it mandatory to fill in all the characters? I mean can you not post an IDOC back to SAP where a field has lesser number of characters than the max allowed?This sounds a little strange.

Thanks

Udayan

shaji_chandran
Participant
0 Kudos

Hi Udayan,

Yes the rest of the length should be filled with space then only IDOC getting processed at SAP properly. I am not sure whether it is correct or not

Thanks

Shaji