‎2014 Jun 12 9:31 AM
Hi ,
Greetings!
Unable to update the Table : OICQP
Issue :
1. Trying to update the Table : OICQP (Quotation Price Information Table) with FM: BAPI_PRICEQUOT_PROXY_UPLOAD
2. Records are getting populated in Table : OICQP while I execute the FM in Tcode : se37 with the same parameters which iam using in program.
3. This Bapi doesn't have return parameters
4.I have tried call the FM in IN UPDATE TASK mode and without
Code is below:
CALL FUNCTION 'BAPI_PRICEQUOT_PROXY_UPLOAD' IN UPDATE TASK
TABLES
TI_PRICEQUOT_INS = tb_bp.
* TI_PRICEQUOT_UPD =
* TI_PRICEQUOT_DEL =
if sy-subrc = 0.
data : wa_mess type BAPIRET2,
wa_BAPI_MSG type BAPI_MSG.
clear : wa_BAPI_MSG.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = wa_mess.
wa_BAPI_MSG = wa_mess-MESSAGE.
MESSAGE 'Data Update Successfully ' TYPE 'S'.
else.
MESSAGE 'Data Not Update ' TYPE 'E'.
endif.
Thanks
Sunil
‎2014 Jun 12 9:38 AM
Hi Sunil,
Check the field contents,
use. FM.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = object
IMPORTING
output = object.
Regards,
Venkat.
‎2014 Jun 12 9:38 AM
Hi Sunil,
Check the field contents,
use. FM.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = object
IMPORTING
output = object.
Regards,
Venkat.
‎2014 Jun 12 9:49 AM
Hi Venkat,
Need to pass below fields to FM .How conversion exit will help me?
QUOSRC Quotation source
QUOTYP Quotation type
QUOTNO Quotation number
QUOTDATE Quotation date
PRICE Price for quotation
DEFCURR Default currency for price quotations
DEFPER Default condition pricing unit for quotations
DEFUOM Default unit of measure for price quotation
NOQUOT No quotation exists indicator
OIGRNET Gross/net pricing indicator
Thanks
Sunil
‎2014 Jun 12 9:52 AM
‎2014 Jun 12 9:56 AM
‎2014 Jun 12 11:24 AM
Hi Sunil,
Try this its working .
PROGRAM ZDEMO_TEST.
types: begin of ty_tab,
mandt TYPE oicqp-mandt,
quosrc TYPE oicqp-quosrc,
quotyp TYPE oicqp-quotyp,
quotno TYPE oicqp-quotno,
quotdate TYPE oicqp-quotdate,
* quotdate(10),
price TYPE oicqp-price,
defcurr TYPE oicqp-defcurr,
defper TYPE oicqp-defper,
defuom TYPE oicqp-defuom,
noquot TYPE oicqp-noquot,
oigrnet TYPE oicqp-oigrnet,
end of ty_Tab.
data: it_tab type table of ty_tab,
wa_tab type ty_tab,
it_ocicqp like OICQP occurs 0 with header line,
wa_mess type BAPIRET2.
wa_tab-MANDT = sy-mandt.
wa_tab-QUOSRC = 'B'.
wa_tab-QUOTYP = 'QUO'.
wa_tab-QUOTNO = '105'.
wa_tab-QUOTDATE = '12062014'.
wa_tab-PRICE = '101'.
append wa_tab to it_tab.
move-corresponding wa_tab to it_ocicqp.
append it_ocicqp.
clear wa_tab.
loop at it_tab into wa_tab.
refresh it_ocicqp.
move-corresponding wa_tab to it_ocicqp.
append it_ocicqp.
CALL FUNCTION 'BAPI_PRICEQUOT_PROXY_UPLOAD'
TABLES
TI_PRICEQUOT_INS = it_ocicqp.
* TI_PRICEQUOT_DEL =
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = wa_mess
.
endloop.
Regards,
Venkat