Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_PR_CREATE update field ADPRI


Hi Gurus,,

Someone knows how to fill this field when creating a PR? I am using BAPI_PR_CREATE and send the value N(3) to this field through the parameter internal table pritem and pritemx ('X') but this fields doesn't get updated.

1) Perhaps I am filling an incorrect value, so Which table has the list of values of this field?

2) How Can I fill this field?

.

.

.

.

.

wa_item-prio_requirement  = '001'

APPEND wa_item TO t_item.

.

.

.

.

wa_itemx-prio_requirement = 'X'.

APPEND wa_itemx TO t_itemx.

* Create the PR with the above data's.
  CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
      prheader     = wa_header
      prheaderx    = wa_headerx
    IMPORTING
      number       = pw_pr_number
    TABLES
      return       = t_return
      pritem       = t_item
      pritemx      = t_itemx

.

.

.

.

Former Member
Not what you were looking for? View more on this topic or Ask a question