BAPI_PR_CREATE enter GL account error
Hi Experts,
I a using babi BAPI_PR_CREATE to create a PR with two line items. but I am getting error 'Enter GL account'.
Please check below program and let me know if anything wrong in it.
data: lv_prnum type BAPIEBANC-PREQ_NO.
data: lv_prnumber type BAPIMEREQHEADER-PREQ_NO.
data: it_req_item type table of BAPIEBANC,
wa_req_item type BAPIEBANC.
data: it_req_item_new type table of BAPIEBAN,
wa_req_item_new type BAPIEBAN.
data: it_acc_assig type table of BAPIEBKN,
wa_acc_assig type BAPIEBKN.
data: it_req_ser type table of BAPIESLLC,
wa_req_ser type BAPIESLLC.
data: it_ser_val type table of BAPIESKLC,
wa_ser_val type BAPIESKLC.
data: it_return type table of BAPIRETURN,
lv_return type BAPIRET2.
data: lv_msg type char50.
data: it_change_return type table of BAPIRET2,
wa_change_return type BAPIRET2.
data: it_pritem type table of BAPIMEREQITEMIMP,
wa_pritem type BAPIMEREQITEMIMP.
data: it_pritemx type table of BAPIMEREQITEMX,
wa_pritemx type BAPIMEREQITEMX.
data: it_pritemexp type table of BAPIMEREQITEM,
wa_pritemexp type BAPIMEREQITEM.
data: it_praccount type table of BAPIMEREQACCOUNT,
wa_praccount type BAPIMEREQACCOUNT.
data: it_praccountx type table of BAPIMEREQACCOUNTX,
wa_praccountx type BAPIMEREQACCOUNTX.
data: it_ret type table of BAPIRET2,
wa_ret type BAPIRET2.
data: it_prheader type table of BAPIMEREQHEADER,
wa_prheader type BAPIMEREQHEADER.
data: it_prheaderx type table of BAPIMEREQHEADERX,
wa_prheaderx type BAPIMEREQHEADERX.
data: it_ser_acc type table of BAPI_SRV_ACC_DATA,
wa_ser_acc type BAPI_SRV_ACC_DATA.
data: it_ser_accx type table of BAPI_SRV_ACC_DATAX,
wa_ser_accx type BAPI_SRV_ACC_DATAX.
*first item - material
wa_pritem-PREQ_ITEM = '00010'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abcd'.
wa_pritem-SHORT_TEXT = 'ABC'.
wa_pritem-MATERIAL = 'NCAD100001'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'Z111'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
*wa_pritem-ITEM_CAT = ' '.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
append wa_pritem to it_pritem.
*2nd item - service
clear wa_pritem.
wa_pritem-PREQ_ITEM = '00020'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abc'.
wa_pritem-SHORT_TEXT = 'ABC'.
*wa_pritem-MATERIAL = 'NCAD100002'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'S0010'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
wa_pritem-ITEM_CAT = '9'.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
wa_pritem-pckg_no = '0000000001'.
append wa_pritem to it_pritem.
*fields for 1st item - material
wa_pritemx-PREQ_ITEM = '00010'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'AU'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
*wa_pritem-ITEM_CAT = ' '.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
append wa_pritemx to it_pritemx.
*fields for 2nd item - service
clear wa_pritemx.
wa_pritemx-PREQ_ITEM = '00020'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'X'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
wa_pritem-ITEM_CAT = 'X'.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
wa_pritem-pckg_no = 'X'.
append wa_pritemx to it_pritemx.
*Account assignment data for 1st item - material
wa_praccount-PREQ_ITEM = '00010'.
wa_praccount-SERIAL_NO = '01'.
wa_praccount-QUANTITY = 1.
wa_praccount-DISTR_PERC = '1.00'.
wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment data for 2nd item - service
clear wa_praccount.
wa_praccount-PREQ_ITEM = '00020'.
wa_praccount-SERIAL_NO = '02'.
*wa_praccount-QUANTITY = 1.
*wa_praccount-DISTR_PERC = '1.00'.
*wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment fields for 1st item - material
wa_praccountx-PREQ_ITEM = '00010'.
wa_praccountx-SERIAL_NO = '01'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
wa_praccountx-QUANTITY = 'X'.
wa_praccountx-DISTR_PERC = 'X'.
wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*Account assignment fields for 2nd item - service
clear wa_praccountx.
wa_praccountx-PREQ_ITEM = '00020'.
wa_praccountx-SERIAL_NO = '02'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
*wa_praccountx-QUANTITY = 'X'.
*wa_praccountx-DISTR_PERC = 'X'.
*wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*2nd item Service details
wa_ser_acc-doc_item = '00020'.
wa_ser_acc-outline = '0000000001'.
wa_ser_acc-srv_line = '0000000010'.
wa_ser_acc-serial_no = '02'.
wa_ser_acc-serial_no_item = '02'.
wa_ser_acc-quantity = 10.
append wa_ser_acc to it_ser_acc.
*2nd item Service fields
wa_ser_accx-doc_item = '00020'.
wa_ser_accx-outline = '0000000001'.
wa_ser_accx-srv_line = '0000000010'.
wa_ser_accx-serial_no = '02'.
wa_ser_accx-serial_no_item = 'X'.
wa_ser_accx-quantity = 'X'.
append wa_ser_accx to it_ser_accx.
*Header details
wa_prheader-pr_type = 'PURE'.
wa_prheaderx-pr_type = 'X'.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
PRHEADER = wa_prheader
PRHEADERX = wa_prheaderx
* TESTRUN =
IMPORTING
NUMBER = lv_prnumber
* PRHEADEREXP =
TABLES
RETURN = it_ret
PRITEM = it_pritem
PRITEMX = it_pritemx
* PRITEMEXP = it_pritemexp
* PRITEMSOURCE =
PRACCOUNT = it_praccount
* PRACCOUNTPROITSEGMENT =
PRACCOUNTX = it_praccountx
* PRADDRDELIVERY =
* PRITEMTEXT =
* PRHEADERTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* PRVERSION =
* PRVERSIONX =
* ALLVERSIONS =
* PRCOMPONENTS =
* PRCOMPONENTSX =
* SERVICEOUTLINE =
* SERVICEOUTLINEX =
* SERVICELINES =
* SERVICELINESX =
* SERVICELIMIT =
* SERVICELIMITX =
* SERVICECONTRACTLIMITS =
* SERVICECONTRACTLIMITSX =
SERVICEACCOUNT = it_ser_acc
SERVICEACCOUNTX = it_ser_accx
* SERVICELONGTEXTS =
* SERIALNUMBER =
* SERIALNUMBERX =
IF sy-subrc eq 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = lv_return.
endif.
Hi
Now i able to post PR. I DID BELOW CHANGE. I ADDED serrial no.
Ls_acct-SERIAL_NO = '01'.
Ls_acct-COSTCENTER = gs_psdata-kostl.
Ls_acct-WBS_ELEMENT = gs_psdata-wbs_element.
append ls_acct to lt_acct.
Ls_acctx-SERIAL_NO = '01'.
Ls_acctx-COSTCENTER = GC_X.
Ls_acctX-WBS_ELEMENT = GC_X.
append ls_acctx to lt_acctx.
But second issue i am facing
i am using item category 'L' subcontracting
i am trying to replace existing BOM with new material USING BELOW LOGIC.
LS_COMP-MATERIAL = gs_psdata-COMP_MATNR. " Ne material act as component of product
LS_COMP-PLANT = gs_psdata-werks.
LS_COMP-CHANGE_ID = 'I'. "gc_value_r.
LS_COMP-ENTRY_QUANTITY = gs_psdata-QUANTITY.
APPEND LS_COMP TO LT_COMP.
CLEAR LS_COMP.
*LS_COMPx-PREQ_ITEM = '00010'.
LS_COMPX-MATERIAL = GC_X.
LS_COMPx-PLANT = gc_x.
LS_COMPX-CHANGE_ID = GC_X.
LS_COMPX-ENTRY_QUANTITY = GC_X.
APPEND LS_COMPX TO LT_COMPX.
CLEAR LS_COMPX.
But i observed that old BOM is pulled into PR. and not appeared my material added in above logic.
Any advise.
Regards
Ramakrishnaiah Y
Similar Messages
-
Enter GL account error in BAPI_PR_CREATE
Hi Experts,
I a using babi BAPI_PR_CREATE to create a PR with two line items. but I am getting error 'Enter GL account'.
Please check below program and let me know if anything wrong in it.
data: lv_prnum type BAPIEBANC-PREQ_NO.
data: lv_prnumber type BAPIMEREQHEADER-PREQ_NO.
data: it_req_item type table of BAPIEBANC,
wa_req_item type BAPIEBANC.
data: it_req_item_new type table of BAPIEBAN,
wa_req_item_new type BAPIEBAN.
data: it_acc_assig type table of BAPIEBKN,
wa_acc_assig type BAPIEBKN.
data: it_req_ser type table of BAPIESLLC,
wa_req_ser type BAPIESLLC.
data: it_ser_val type table of BAPIESKLC,
wa_ser_val type BAPIESKLC.
data: it_return type table of BAPIRETURN,
lv_return type BAPIRET2.
data: lv_msg type char50.
data: it_change_return type table of BAPIRET2,
wa_change_return type BAPIRET2.
data: it_pritem type table of BAPIMEREQITEMIMP,
wa_pritem type BAPIMEREQITEMIMP.
data: it_pritemx type table of BAPIMEREQITEMX,
wa_pritemx type BAPIMEREQITEMX.
data: it_pritemexp type table of BAPIMEREQITEM,
wa_pritemexp type BAPIMEREQITEM.
data: it_praccount type table of BAPIMEREQACCOUNT,
wa_praccount type BAPIMEREQACCOUNT.
data: it_praccountx type table of BAPIMEREQACCOUNTX,
wa_praccountx type BAPIMEREQACCOUNTX.
data: it_ret type table of BAPIRET2,
wa_ret type BAPIRET2.
data: it_prheader type table of BAPIMEREQHEADER,
wa_prheader type BAPIMEREQHEADER.
data: it_prheaderx type table of BAPIMEREQHEADERX,
wa_prheaderx type BAPIMEREQHEADERX.
data: it_ser_acc type table of BAPI_SRV_ACC_DATA,
wa_ser_acc type BAPI_SRV_ACC_DATA.
data: it_ser_accx type table of BAPI_SRV_ACC_DATAX,
wa_ser_accx type BAPI_SRV_ACC_DATAX.
*first item - material
wa_pritem-PREQ_ITEM = '00010'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abcd'.
wa_pritem-SHORT_TEXT = 'ABC'.
wa_pritem-MATERIAL = 'NCAD100001'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'Z111'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
*wa_pritem-ITEM_CAT = ' '.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
append wa_pritem to it_pritem.
*2nd item - service
clear wa_pritem.
wa_pritem-PREQ_ITEM = '00020'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abc'.
wa_pritem-SHORT_TEXT = 'ABC'.
*wa_pritem-MATERIAL = 'NCAD100002'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'S0010'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
wa_pritem-ITEM_CAT = '9'.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
wa_pritem-pckg_no = '0000000001'.
append wa_pritem to it_pritem.
*fields for 1st item - material
wa_pritemx-PREQ_ITEM = '00010'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'AU'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
*wa_pritem-ITEM_CAT = ' '.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
append wa_pritemx to it_pritemx.
*fields for 2nd item - service
clear wa_pritemx.
wa_pritemx-PREQ_ITEM = '00020'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'X'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
wa_pritem-ITEM_CAT = 'X'.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
wa_pritem-pckg_no = 'X'.
append wa_pritemx to it_pritemx.
*Account assignment data for 1st item - material
wa_praccount-PREQ_ITEM = '00010'.
wa_praccount-SERIAL_NO = '01'.
wa_praccount-QUANTITY = 1.
wa_praccount-DISTR_PERC = '1.00'.
wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment data for 2nd item - service
clear wa_praccount.
wa_praccount-PREQ_ITEM = '00020'.
wa_praccount-SERIAL_NO = '02'.
*wa_praccount-QUANTITY = 1.
*wa_praccount-DISTR_PERC = '1.00'.
*wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment fields for 1st item - material
wa_praccountx-PREQ_ITEM = '00010'.
wa_praccountx-SERIAL_NO = '01'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
wa_praccountx-QUANTITY = 'X'.
wa_praccountx-DISTR_PERC = 'X'.
wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*Account assignment fields for 2nd item - service
clear wa_praccountx.
wa_praccountx-PREQ_ITEM = '00020'.
wa_praccountx-SERIAL_NO = '02'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
*wa_praccountx-QUANTITY = 'X'.
*wa_praccountx-DISTR_PERC = 'X'.
*wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*2nd item Service details
wa_ser_acc-doc_item = '00020'.
wa_ser_acc-outline = '0000000001'.
wa_ser_acc-srv_line = '0000000010'.
wa_ser_acc-serial_no = '02'.
wa_ser_acc-serial_no_item = '02'.
wa_ser_acc-quantity = 10.
append wa_ser_acc to it_ser_acc.
*2nd item Service fields
wa_ser_accx-doc_item = '00020'.
wa_ser_accx-outline = '0000000001'.
wa_ser_accx-srv_line = '0000000010'.
wa_ser_accx-serial_no = '02'.
wa_ser_accx-serial_no_item = 'X'.
wa_ser_accx-quantity = 'X'.
append wa_ser_accx to it_ser_accx.
*Header details
wa_prheader-pr_type = 'PURE'.
wa_prheaderx-pr_type = 'X'.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
PRHEADER = wa_prheader
PRHEADERX = wa_prheaderx
* TESTRUN =
IMPORTING
NUMBER = lv_prnumber
* PRHEADEREXP =
TABLES
RETURN = it_ret
PRITEM = it_pritem
PRITEMX = it_pritemx
* PRITEMEXP = it_pritemexp
* PRITEMSOURCE =
PRACCOUNT = it_praccount
* PRACCOUNTPROITSEGMENT =
PRACCOUNTX = it_praccountx
* PRADDRDELIVERY =
* PRITEMTEXT =
* PRHEADERTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* PRVERSION =
* PRVERSIONX =
* ALLVERSIONS =
* PRCOMPONENTS =
* PRCOMPONENTSX =
* SERVICEOUTLINE =
* SERVICEOUTLINEX =
* SERVICELINES =
* SERVICELINESX =
* SERVICELIMIT =
* SERVICELIMITX =
* SERVICECONTRACTLIMITS =
* SERVICECONTRACTLIMITSX =
SERVICEACCOUNT = it_ser_acc
SERVICEACCOUNTX = it_ser_accx
* SERVICELONGTEXTS =
* SERIALNUMBER =
* SERIALNUMBERX =
IF sy-subrc eq 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = lv_return.
endif.Hi ,
read the BAPI documentation where they have provided example for PR creation with and without account assignment with example.
check that.
regards, -
Bapi_PR_Create - Enter valuation price error
Hi all,
I'm using the BAPI_PR_CREATE and it's giving me the "Enter Valuation Price" Error.
Does any one can tell me what is the fields for passing the Valuation Price?
I'm not really sure.
I'm Using the PRITEM-PREQ_PRICE (and I'm not forgeting the PRITEMX ).
Thanks in advanced.
MiguelHi
The valuation price of the material is not picked up from the field PRITEM-PREQ_PRICE in the BAPI.
Please maintain the Price in the material master in the accounting view , then only the price will be picked up.
If you are not able to do so please maintain the price of the material using MR21.
Even though you fill the field the valuation price in BAPI this will always be over written by the Material price.
Thanks & Regards
Kishore
Edited by: Kishore Kumar Chiluka on May 15, 2008 2:53 PM -
Enter GL account error while using BAPI_PO_CREATE
Hello All,
I am using BUS2012 for uploading Account assignment PO through LSMW.I have filled the GL account field also but I am getting the error 'Enter Gl account'.Please let me know what could be the problem.
Thanks,
Rakesh.Thanks it solved my problem
Yes, someone configured Variants for Real-Time integration and assigned it to company code, I deleted the assignment and no longer receiving the error.
But I need to know that if Real Time Integration is turned off, whether FI data will show the picture that is mapped fully to CO data or it is not usually required at all. Because if CO allocations change assignments of original cost center debits in CO only, FI data will still show the old assignments. -
BAPI_PR_CREATE error enter GL account
Hi All,
I a using babi BAPI_PR_CREATE to create a PR with two line items. but I am getting error 'Enter GL account'.
Please check below program and let me know if anything wrong in it.
data: lv_prnum type BAPIEBANC-PREQ_NO.
data: lv_prnumber type BAPIMEREQHEADER-PREQ_NO.
data: it_req_item type table of BAPIEBANC,
wa_req_item type BAPIEBANC.
data: it_req_item_new type table of BAPIEBAN,
wa_req_item_new type BAPIEBAN.
data: it_acc_assig type table of BAPIEBKN,
wa_acc_assig type BAPIEBKN.
data: it_req_ser type table of BAPIESLLC,
wa_req_ser type BAPIESLLC.
data: it_ser_val type table of BAPIESKLC,
wa_ser_val type BAPIESKLC.
data: it_return type table of BAPIRETURN,
lv_return type BAPIRET2.
data: lv_msg type char50.
data: it_change_return type table of BAPIRET2,
wa_change_return type BAPIRET2.
data: it_pritem type table of BAPIMEREQITEMIMP,
wa_pritem type BAPIMEREQITEMIMP.
data: it_pritemx type table of BAPIMEREQITEMX,
wa_pritemx type BAPIMEREQITEMX.
data: it_pritemexp type table of BAPIMEREQITEM,
wa_pritemexp type BAPIMEREQITEM.
data: it_praccount type table of BAPIMEREQACCOUNT,
wa_praccount type BAPIMEREQACCOUNT.
data: it_praccountx type table of BAPIMEREQACCOUNTX,
wa_praccountx type BAPIMEREQACCOUNTX.
data: it_ret type table of BAPIRET2,
wa_ret type BAPIRET2.
data: it_prheader type table of BAPIMEREQHEADER,
wa_prheader type BAPIMEREQHEADER.
data: it_prheaderx type table of BAPIMEREQHEADERX,
wa_prheaderx type BAPIMEREQHEADERX.
data: it_ser_acc type table of BAPI_SRV_ACC_DATA,
wa_ser_acc type BAPI_SRV_ACC_DATA.
data: it_ser_accx type table of BAPI_SRV_ACC_DATAX,
wa_ser_accx type BAPI_SRV_ACC_DATAX.
*first item - material
wa_pritem-PREQ_ITEM = '00010'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abcd'.
wa_pritem-SHORT_TEXT = 'ABC'.
wa_pritem-MATERIAL = 'NCAD100001'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'Z111'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
*wa_pritem-ITEM_CAT = ' '.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
append wa_pritem to it_pritem.
*2nd item - service
clear wa_pritem.
wa_pritem-PREQ_ITEM = '00020'.
wa_pritem-PUR_GROUP = 'ITD'.
wa_pritem-preq_name = 'abc'.
wa_pritem-SHORT_TEXT = 'ABC'.
*wa_pritem-MATERIAL = 'NCAD100002'.
wa_pritem-PLANT = '1100'.
wa_pritem-TRACKINGNO = 'XXX'.
wa_pritem-MATL_GROUP = 'S0010'.
wa_pritem-QUANTITY = 1.
*wa_pritem-UNIT = 'AU'.
wa_pritem-PREQ_DATE = '20140430'.
wa_pritem-DELIV_DATE = '20140505'.
wa_pritem-PRICE_UNIT = 1.
wa_pritem-ITEM_CAT = '9'.
wa_pritem-ACCTASSCAT = 'N'.
*wa_pritem-des_vendor = '0050000793'.
*wa_pritem-fixed_vend = '0050000793'.
wa_pritem-PURCH_ORG = '1000'.
wa_pritem-pckg_no = '0000000001'.
append wa_pritem to it_pritem.
*fields for 1st item - material
wa_pritemx-PREQ_ITEM = '00010'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'AU'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
*wa_pritem-ITEM_CAT = ' '.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
append wa_pritemx to it_pritemx.
*fields for 2nd item - service
clear wa_pritemx.
wa_pritemx-PREQ_ITEM = '00020'.
wa_pritemx-PREQ_ITEMX = 'X'.
wa_pritemx-PUR_GROUP = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-SHORT_TEXT = 'X'.
wa_pritemx-MATERIAL = 'X'.
wa_pritemx-PLANT = 'X'.
wa_pritemx-TRACKINGNO = 'X'.
wa_pritemx-MATL_GROUP = 'X'.
wa_pritemx-QUANTITY = 'X'.
*wa_pritem-UNIT = 'X'.
wa_pritemx-PREQ_DATE = 'X'.
wa_pritemx-DELIV_DATE = 'X'.
wa_pritemx-PRICE_UNIT = 'X'.
wa_pritem-ITEM_CAT = 'X'.
wa_pritemx-ACCTASSCAT = 'X'.
*wa_pritemx-des_vendor = 'X'.
*wa_pritemx-fixed_vend = 'X'.
wa_pritemx-PURCH_ORG = 'X'.
wa_pritem-pckg_no = 'X'.
append wa_pritemx to it_pritemx.
*Account assignment data for 1st item - material
wa_praccount-PREQ_ITEM = '00010'.
wa_praccount-SERIAL_NO = '01'.
wa_praccount-QUANTITY = 1.
wa_praccount-DISTR_PERC = '1.00'.
wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment data for 2nd item - service
clear wa_praccount.
wa_praccount-PREQ_ITEM = '00020'.
wa_praccount-SERIAL_NO = '02'.
*wa_praccount-QUANTITY = 1.
*wa_praccount-DISTR_PERC = '1.00'.
*wa_praccount-NET_VALUE = 1.
wa_praccount-GL_ACCOUNT = '0040100801'.
wa_praccount-UNLOAD_PT = 'ABC'.
wa_praccount-CO_AREA = '1000'.
wa_praccount-NETWORK = '000004011841'.
append wa_praccount to it_praccount.
*Account assignment fields for 1st item - material
wa_praccountx-PREQ_ITEM = '00010'.
wa_praccountx-SERIAL_NO = '01'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
wa_praccountx-QUANTITY = 'X'.
wa_praccountx-DISTR_PERC = 'X'.
wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*Account assignment fields for 2nd item - service
clear wa_praccountx.
wa_praccountx-PREQ_ITEM = '00020'.
wa_praccountx-SERIAL_NO = '02'.
wa_praccountx-PREQ_ITEMX = 'X'.
wa_praccountx-SERIAL_NOX = 'X'.
*wa_praccountx-QUANTITY = 'X'.
*wa_praccountx-DISTR_PERC = 'X'.
*wa_praccountx-NET_VALUE = 'X'.
wa_praccountx-GL_ACCOUNT = 'X'.
wa_praccountx-UNLOAD_PT = 'X'.
wa_praccountx-CO_AREA = 'X'.
wa_praccountx-NETWORK = 'X'.
append wa_praccountx to it_praccountx.
*2nd item Service details
wa_ser_acc-doc_item = '00020'.
wa_ser_acc-outline = '0000000001'.
wa_ser_acc-srv_line = '0000000010'.
wa_ser_acc-serial_no = '02'.
wa_ser_acc-serial_no_item = '02'.
wa_ser_acc-quantity = 10.
append wa_ser_acc to it_ser_acc.
*2nd item Service fields
wa_ser_accx-doc_item = '00020'.
wa_ser_accx-outline = '0000000001'.
wa_ser_accx-srv_line = '0000000010'.
wa_ser_accx-serial_no = '02'.
wa_ser_accx-serial_no_item = 'X'.
wa_ser_accx-quantity = 'X'.
append wa_ser_accx to it_ser_accx.
*Header details
wa_prheader-pr_type = 'PURE'.
wa_prheaderx-pr_type = 'X'.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
PRHEADER = wa_prheader
PRHEADERX = wa_prheaderx
* TESTRUN =
IMPORTING
NUMBER = lv_prnumber
* PRHEADEREXP =
TABLES
RETURN = it_ret
PRITEM = it_pritem
PRITEMX = it_pritemx
* PRITEMEXP = it_pritemexp
* PRITEMSOURCE =
PRACCOUNT = it_praccount
* PRACCOUNTPROITSEGMENT =
PRACCOUNTX = it_praccountx
* PRADDRDELIVERY =
* PRITEMTEXT =
* PRHEADERTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* PRVERSION =
* PRVERSIONX =
* ALLVERSIONS =
* PRCOMPONENTS =
* PRCOMPONENTSX =
* SERVICEOUTLINE =
* SERVICEOUTLINEX =
* SERVICELINES =
* SERVICELINESX =
* SERVICELIMIT =
* SERVICELIMITX =
* SERVICECONTRACTLIMITS =
* SERVICECONTRACTLIMITSX =
SERVICEACCOUNT = it_ser_acc
SERVICEACCOUNTX = it_ser_accx
* SERVICELONGTEXTS =
* SERIALNUMBER =
* SERIALNUMBERX =
IF sy-subrc eq 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = lv_return.
endif.Hi
If you want to specify the G/L account for PR you have to transfer
it in field GL_ACCOUNT in PRACCOUNT and PRACCOUNTX structures.
This errornormally could occur because the SERIAL_NO in PRACCOUNT and PRACCOUNTX
was set to "00". It should be setto a value > 0, e.g. "01"
Kind regards,
Lorraine -
Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help
Hotmail is having problems:
http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
http://www.engadget.com/2013/08/14/outlook-outage/
http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
http://mashable.com/2013/08/14/outlook-down/
http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/ -
Error 'Enter GL Account' while posting and invoice line item in MIRO
Hello Gurus,
I am facing a rather wierd issue.
While posting a PO invoice in Tcode MIRO, its asking to enter the GL account in line items. Everytime I am entering the GL account and pressing the enter key, it wipes off the GL account clean and gives the same error 'Enter GL account'.
It seems like this error is happening at the very first line item of the invoice. System is able to accept the GL account in 2,3,4th lines. If I delete the first line item, whatever is the first line item in that screen adapts the issue.
Any help would be great as I have no clue what to do.
ThanksHello Priyadarshini,
could you inform the error message number and it complete long text?
Regards,
Mateus Grings -
hello adobe muse when opening the program after entering my account information it says an unexpected error has occurred, what should I do
Hi
This looks an older version of Adobe Muse, Please try the steps given in this article
An unexpected error occurred I -200 -
Do not enter an account number for a masked account type
Good Morning
1)
I am trying to give some account number in open / close posting period window. From acount field (Lower limit of the G/L account numbers ) is not accepting the value. I have also tried with ZZZZZ and many other options. Can any one help what could be he reason ?
This is the Error Message
Do not enter an account number for a masked account type
2) Who is responsible to create the Authorization Group? What is FICO consultant role here ?
Eg: I want to give some privileges to one of the users in Management to open and close the posting period for all the nominals for all posting periods.
who creates the Authorization Group
Regards
AmarHi,
1, For account group the error may be comimg because already data is created. In lower limit donot enter ZZZZZ as it is considered as the highest value. You can try the lowest account number.
2. Creating a role is job of bais based on the FICO tcode given by FICO consultant. For special privilages to a role you can ask to basis guy to create a separate role and assign to user.
Regards
Milind Sonalkar -
How to enter an account assignment category for a material.
Hi guys:
I am facing following error prompt,please tell me how to enter an account assignment category for a material.
thanks
Account assignment mandatory for material 0000000N6451 (enter acc. ***. cat.)
Message no. ME062
Diagnosis
There is no provision for value-based inventory management for this material type in this plant. Account assignment is thus necessary.
Procedure
Please enter an account assignment category.HI Shyam :
Go to transaction type OMS2. Check whether the material type u are using is ticked for Value update.
If not,
a. Use a different material type
b. or Use an account assignment category.
How to use B,that is hot to enter an account assignment cateogory -
No account assignment exists. Enter an account assignment.
Hi Experts,
I am trying to create SC with 'Limit Item' (SRM 4.0, Classic scenarion)
Cost assignment: Percentage distribution for Multiple Account Assignment Cost Center.
When I enter all the details, and click on check, I am getting error: No account assignment exists. Enter an account assignment.
What am I missing here....?
Thanks,
DhananjayHello,
In ERP system , check the cash management settings for the company code used in the SRM - ERP integration here.
Goto Tcode - OBY6 in the erp and navigate to the company code details. Check if you have activated the check box "Activat CM"; with this check box ON you cannot create your PO successfully.
Uncheck this setting and then try.
Best Regards,
Rahul -
Hi All,
We are running the create accounting process from AP , I am getting the below error . Need assistance since i have to fix this issue ASAP.
The subledger journal entry does not balance in the entered currency. Please verify the entered amounts on the journal entry lines.
Please help
RegardsSee this note:
Create Accounting Error "The accounted amount and entered amount for the subledger jounral entry line have different sign" [ID 1165264.1] -
Account Error: Missing Locator
I noticed that when I visitied my site, it would have this in the address http://www.mydomain.com/www.mydomain.com/Welcome.html even though I had entered www.mydomain.com.
I had the domain in MobileMe originally. Then I registered it in www.fastdomain.com via IPage back in August 2011. It was at this point I would publish using the FTP option but I didn't change anything on MobileMe. Today, I thought I would clean things up.
I went into MobileMe and removed it from the Personal Domain. I tried to remove the back up from IDISK but it wouldn't let me. I did a publish and wen to visit the site. I now get prompted to enter my mobileme info. When I do, I get Account Error: Missing Locator. How do I clean this up???Now you need to remove the CNAME entry as well where you host your domainname.
MobileMe has no entry for your domainname anymore, hence the login window.
; <<>> DiG 9.6-ESV-R4-P3 <<>> www.agardenisbelievingintomorrow.com cname +multiline +nocomments +nocmd +noquestion +nostats +search
;; global options: +cmd
www.agardenisbelievingintomorrow.com. 3600 IN CNAME web.me.com. -
Account Error: Nonexistent
It was working last night, but now it's just saying "Account Error: Nonexistent" when I try to view my website. It also asks me to login to access idisk.me.com or something like that when I enter in my domain name.
I have exactly the same issue on several pages of mine. If I publish them on my MobileMe master Account or family member account, these random loading difficulties occur. If I publish on another Account that I got from Apple Support for testing, it works perfectly. So it has something to do with certain Accounts on MobileMe, for example with mine... In my case, the problem is always here, around the clock. If I reload the page, it usually works but not always.
Apples MobileMe support is on the case since 4 days, I will post results as soon I have any.
Sometimes, the menu of the page does not load, sometimes images are missing, sometimes fonts are wrong, sometimes the background is missing, sometimes I have an the message "Account Error: Nonexistent". When I reload the page, it usually works or the problem is slightly different.
I did publish the sites from scratch, without improvement. It happens on other browsers than Safari and on other OS like Windows XP. It really is a problem with MobileMe. UNACCEPTABLE !
www.sachenmacherei.ch -
Hi Friends,
In the VKOA I have defined the data for combo (V/KOFK/Ch Ac/Sales org/DC/AAg/AAG/orderAAG/Act Key/GL account)
But when I am creating standard debit memo request and chkng incompletion log showing as complete but when am saving getting error message that ( enter GL account- missing data) so chkng pricing analysis and found that Order act AAG is missing there but why ( its already maintained for required combo, and material is also maintained the correct AAG) from where it is picking the data?
Regards
Ashuhi
this is to inform you that,
- check the G/L account whether correct or not which is maintained at VKOA.
- if every thing is OK, then sit with an ABAPER & DEBUGG.
debugging a sales order will take plenty of time.
according to your requriment
hope this helps a lot on your issue.
balajia
Maybe you are looking for
-
E4X: What happens to the root element?
I'm working with XML using the E4X notation. I'm used to the "old school" XML APIs that use DOM and I'm a bit confused. For example, let's consider the following XML <mx:XML id="myXML" > <top> <sub1 id="uno"> <sub2>hello</sub2> <sub
-
Ever since I updated Firefox the videos I watch keep on flickering when I stream this. It is true of youtube, and other mediums. This is not a problem when I watch videos on Safari or Internet Explorer. I have uninstalled and reinstalled firefox to n
-
External editor in Aperture: How do I see the edited image in Aperture?
I used to be able to edit externally in Elements and then save/close the program and see the changes in Aperture. This does not happen anymore. I have to save the changed image (onto my desktop), and then import it into Aperture. Any suggestions h
-
Cost Planning for networks in a CO plan version other than 0
Hi, We have a specific requirement of getting the planned cost in terms of $ and hours on a network activity getting posted to some other CO version other than 0 in certain cases. It would be great if anyone could suggest a FM or a BAPI to achieve th
-
Hi Could anybody tell me why this query is giving the wrong result? The column 'Spend for Selected Period' is showing as far too much (ie exactly 11 times too much!!!) when totalling the 37 invoices involved SELECT T0.[CardCode], T0.[CardName],T0.[Ma