Skip to Content
avatar image
Former Member

Is padding required while posting to SAP

Hi

Is padding really required for a number(ex: if a field has max length is 10, can it have only 3 out of it and left others) or string(ex: if a field has max length is 10 char, can it have only 4 out of it and left others)while posting as an IDoc to SAP from XI.

Can anybody please advise...

Kr

Ramesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Jun 04, 2007 at 01:50 PM

    not exactly in all the cases...becoz when psoting an idoc to xi some of the fields are of character type and numerci type where the data is adjuested to fill the transaction fields. for the case even the quantity and currency fields are treated as strings when the data is uploaded. but incase u are making some query into a DB table then u might need padding as the convertion routines may have used in the domain level.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2007 at 12:59 PM

    Hi ramesh.

    Padding with zero is required in most of the cases related to scenarios involving BAPI and IDocs in case if numeric values are being transferred.

    First, check how the numeric values are stored in your database table. If their data type is charectar, then they will be left padded with zeros.

    Check their representation and go ahead accordingly

    Regards,

    Hari

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 05, 2007 at 04:20 AM

    Thanks a lot for the inputs.

    Kr

    Ramesh

    Add comment
    10|10000 characters needed characters exceeded