Skip to Content
avatar image
Former Member

bapi - please use meaningfull subject titles!

HI experts,

I have uploaded txt file into itab and then splitted itab-record at comma and populated itab1.itab1 is having quantity field of type char13. This itab1 is to be passed to bapi_requision_create.To do this, I am moving itab1 to 'requision_items' tab where quantity is of p. when I am moving itab1-qunatity to requisition-quantity , it says , that it can't be moved.How to handle ? my code is as below,

loop at it_bapiebanc into wa_bapiebanc.

wa_bapiebanc1-doc_type(4) = wa_bapiebanc-doc_type(4).

wa_bapiebanc1-PREQ_ITEM(5) = wa_bapiebanc-PREQ_ITEM(5).

wa_bapiebanc1-material(18) = wa_bapiebanc-material(18).

wa_bapiebanc1-SHORT_TEXT(40) = wa_bapiebanc-SHORT_TEXT(40).

  • wa_bapiebanc1-quantity(13) = wa_bapiebanc-quantity(13).

wa_bapiebanc1-unit(3) = wa_bapiebanc-unit(3).

wa_bapiebanc1-DELIV_DATE(8) = wa_bapiebanc-DELIV_DATE(8).

wa_bapiebanc1-PUR_GROUP(3) = wa_bapiebanc-PUR_GROUP(3).

wa_bapiebanc1-MAT_GRP(9) = wa_bapiebanc-MAT_GRP(9).

wa_bapiebanc1-plant(4) = wa_bapiebanc-plant(4).

wa_bapiebanc1-STORE_LOC(4) = wa_bapiebanc-STORE_LOC(4).

append wa_bapiebanc1 to it_bapiebanc1.


data :

it_bapiebanc type standard table of ty_bapiebanc,

it_bapiebanc1 type standard table of bapiebanc.



Edited by: Julius Bussche on Mar 22, 2009 11:35 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 23, 2009 at 05:13 AM

    hai khadeer,

    Try to give same date type for both itab1-qunatity and requisition-quantity.

    I think it is the problem.e

    Hope will solve your problem.


    Add comment
    10|10000 characters needed characters exceeded

  • Mar 22, 2009 at 02:37 PM


    You have mentioned that ITAB1 has Qty field of Char13 and BAPI field of Type P.I am not clear here.

    When i looked at BAPI it has Qty of 13 length.

    Change ITAB1 quantity field as same as BAPI Qty field and try to load it.It should work.


    Add comment
    10|10000 characters needed characters exceeded