Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

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.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question