‎2008 Dec 26 8:38 AM
Hi All,
I am uploading an excel file into an internal table and then calling the bapi BAPI_QUOTATION_CREATEFROMDATA2 to create a quotation. The bapi is working fine when the excel contains one line item. But when it has two or more line items it is giving the error 'No status object is available for SDI 0'
The parameters i am passing to the bapi are:
call function 'BAPI_QUOTATION_CREATEFROMDATA2'
exporting
quotation_header_in = wa_headerq
quotation_header_inx = wa_headerq_inx
behave_when_error = 'P'
importing
salesdocument = lv_vbeln
tables
return = it_return[]
quotation_items_in = it_quotation_items_in
quotation_items_inx = it_quotation_items_inx[]
quotation_partners = it_quotation_partners[]
quotation_conditions_in = it_quotation_conditions_in[]
quotation_schedules_in = it_quotation_schedules_in[]
quotation_schedules_inx = it_quotation_schedules_inx[].
Please suggest the way in which i can solve my problem
Thanks,
Vivek
‎2008 Dec 26 8:42 AM
‎2008 Dec 26 9:04 AM
Hi ,
This link was very helpful but it dosent help my cause.
I am able to create the quotation for one line item ann not for more than one line item.
Is there a dofferent apporach to this problem?
Thanks,
Vivek
‎2008 Dec 26 9:14 AM
In the tables parameter why you put [] for some of them, either you put it for all or remove it for all
(just try)
Regards
sasi
‎2008 Dec 26 9:22 AM
Hi,
for both the case it is not working i have tried putting the braces in all the parameters and removing the braces in all the parameters.
Thanks,
Vivek
‎2008 Dec 26 10:14 AM
Hi Vivek,
Are u getting any error in return parameter? Problem might be because of data also.
Try to create manually in VA21 for the same data and see if it creates or not.
Also are u correctly populating the data in itemx table. Number of records in itam and itemx must be same. Else it will ignore other records which are not there in itemx.
Thanks,
Vinod.