2008 May 19 11:07 AM
Hello.
I have a Create PR Upload program where I used FM "BAPI_PR_CREATE". I filled the neccesary fields on structures PRITEM, PRITEMX, PRITEMEXP, PRACCOUNT, PRACCOUNTX, PRHEADER and PRHEADERX. The value on the field PRHEADER-CREATE_IND is 'R', which is a valid value for that field (ref. field EBAN-ESTKZ). I also assigned PRITEMEXP-CREATE_IND = 'R'. But I get the return msg "Creation indicator is invalid". Somewhere in method PROCESS_RULES of class LCL_RULE_INTERPRETER, it clears the Creation Indicator field (ESTKZ). Did I miss something in the parameters? Is there a sap note related to this problem?
Below are snipets of my structure assignment:
gs_prheader-pr_type = gt_updata-bsart.
gs_prheader-general_release = 'X'.
gs_prheader-create_ind = 'R'.
gt_pritem-preq_item = gt_updata-bnfpo.
gt_pritem-pur_group = gt_updata-ekgrp.
gt_pritem-preq_name = gt_updata-afnam.
gt_pritem-short_text = gt_updata-txz01.
gt_pritem-plant = gt_updata-ewerk.
gt_pritem-matl_group = gt_updata-matkl.
gt_pritem-quantity = gt_updata-menge.
gt_pritem-unit = gt_updata-meins.
gt_pritem-preq_date = gv_dstart.
gt_pritem-del_datcat_ext = 'D'.
gt_pritem-deliv_date = ld_ddate.
gt_pritem-rel_date = gv_dstart.
gt_pritem-preq_price = gt_updata-epein * gt_updata-menge.
gt_pritem-price_unit = gt_updata-epein.
gt_pritem-acctasscat = gt_updata-knttp.
gt_pritemexp-preq_item = gt_updata-bnfpo.
gt_pritemexp-doc_type = gt_updata-bsart.
gt_pritemexp-doc_cat = 'B'.
gt_pritemexp-create_ind = 'R'.
gt_pritemexp-pur_group = gt_updata-ekgrp.
gt_pritemexp-preq_name = gt_updata-afnam.
gt_pritemexp-short_text = gt_updata-txz01.
gt_pritemexp-plant = gt_updata-ewerk.
gt_pritemexp-matl_group = gt_updata-matkl.
gt_pritemexp-quantity = gt_updata-menge.
gt_pritemexp-unit = gt_updata-meins.
gt_pritemexp-preq_date = gv_dstart.
gt_pritemexp-deliv_date = ld_ddate.
gt_pritemexp-subj_to_r = ' '.
gt_pritemexp-acctasscat = gt_updata-knttp.
gt_pritemexp-general_release = 'X'.
Thanks in advance.
I am running into same issue for the BAPI 'BAPI_PR_CREATE' for the creation indicator for I am passing for 'PRHEADER'
prheader-CREATE_IND = 'R'.
prheader-general_release = 'X'. and setting up the flags in PRHEADERX
Getting the error invalid creation indicator. Can you please let me know how did you resolve the issue.
Thanks,
Purnima
2009 Oct 08 11:40 PM
I am running into same issue for the BAPI 'BAPI_PR_CREATE' for the creation indicator for I am passing for 'PRHEADER'
prheader-CREATE_IND = 'R'.
prheader-general_release = 'X'. and setting up the flags in PRHEADERX
Getting the error invalid creation indicator. Can you please let me know how did you resolve the issue.
Thanks,
Purnima
2010 Nov 10 2:35 PM
Maybe the programm error! need SAP to fix it.
Here're have not answer to you.
2011 Mar 07 9:01 AM
Hi,
Please give the value BAPIMEREQHEADER-CREATE_IND = 'R' and pass blank value to BAPIMEREQHEADERX-CREATE_IND.
It works fine and creates the PR. Do not forget to commit work for the BAPI.
Rgds
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |