on 03-22-2009 11:54 AM
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.
endloop.
data :
it_bapiebanc type standard table of ty_bapiebanc,
it_bapiebanc1 type standard table of bapiebanc.
rgds,
khadeer.
Edited by: Julius Bussche on Mar 22, 2009 11:35 PM
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.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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.
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.