Hi expert !
i was trying to post pr docu by using bapi_pr_create, but i got dump error /;convt_no_number
searched notes , but didn't find related notes.
i did deleted some source not needed in the whole source, because convt_no_number comes up.
i hoped that return table from bapi_pr_create, but dump error came up with convt_no_number,
humm,,, very strange issue, please get back to me with good advise.
my source code is not complete to post docu ,, just hope not dump error comes up, but dump error as convt_no number.....
someone can execute this source whether dump error or return bapi return table with some error message ?
SAP kernel....... 700
created (date)... "Aug 24 2008 21:47:28"
Patch level. 175
SAP database version. 700
APPL SP 18
data : g_mereqheader like bapimereqheader,
g_mereqheaderx like bapimereqheaderx,
g_mereqitem like bapimereqitemimp occurs 0 with header line,
g_mereqitemx like bapimereqitemx occurs 0 with header line,
g_mereqacc like bapimereqaccount occurs 0 with header line,
g_mereqaccx like bapimereqaccountx occurs 0 with header line,
g_te_meqitem type bapi_te_mereqitem,
g_te_meqitemx type bapi_te_mereqitemx,
g_ext_in like bapiparex occurs 0 with header line,
g_ext_out like bapiparex occurs 0 with header line,
g_prnumber like bapimereqheader-preq_no,
gt_return like bapiret2 occurs 0 with header line,
data : ex_value type me_max_container.
data : lv_item like eban-bnfpo,
lv_sn like bapimereqaccount-serial_no.
g_mereqheader-pr_type = 'NB'.
g_mereqheaderx-pr_type = 'X'.
lv_sn = '01'.
loop at gt_itab where check = 'X'.
clear : g_mereqitem, g_mereqitemx.
lv_item = lv_item + 10.
g_mereqitem-preq_item = lv_item.
g_mereqitem-acctasscat = '1'. " 1 is used for stock material
g_mereqitem-material = gt_itab-matnr. " valuse 00000123 or 123 both tried ,,
g_mereqitemx-preq_item = lv_item.
g_mereqitemx-preq_itemx = 'X'.
g_mereqitemx-acctasscat = 'X'.
g_mereqitemx-material = 'X'.
g_mereqacc-preq_item = lv_item.
g_mereqacc-serial_no = lv_sn.
g_mereqaccx-preq_item = lv_item.
g_mereqaccx-serial_no = lv_sn.
g_mereqaccx-serial_nox = 'X'.
append g_mereqacc. append g_mereqaccx.
append g_mereqitem. append g_mereqitemx.
call function 'BAPI_PR_CREATE'
prheader = g_mereqheader
prheaderx = g_mereqheaderx
number = g_prnumber
return = gt_return
pritem = g_mereqitem
pritemx = g_mereqitemx
praccount = g_mereqacc
praccountx = g_mereqaccx
extensionin = g_ext_in
extensionout = g_ext_in
Edited by: venjamin on Sep 10, 2010 10:15 AM
Edited by: venjamin on Sep 10, 2010 10:18 AM