Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CONTRACT_CREATEFROMDATA - extensionin short dump

Former Member
0 Likes
1,498

Hi,

I am currently copying a contract to another sales organisation. I am desparate - any ideas?

I have created additional fields in vbap (extended: bape_vbap, bape_vbap, vbapkoz, vbapkozx). I have tried using BAPI_CONTRACT_CREATEFROMDATA to create the new contract using the extension to add the new fields. I get a short dump with the title 'DBIF_RSQL_INTERNAL_ERROR' and the following key words:

*************************************

"DBIF_RSQL_INTERNAL_ERROR" " "

"SAPLV45U" or "LV45UF0V"

"VBAP_BEARBEITEN"

Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN".

The main program was "RSM13000 ".

In the source code you have the termination point in line 169

of the (Include) program "LV45UF0V".

The program "SAPLV45U" was started in the update system.

**********************************************

Thanks,

Leanne

3 REPLIES 3
Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
960

I have used BAPI_SALESORDER_CHANGE for updating the extension fields

  • Declaration

DATA: ls_order_header_inx TYPE bapisdh1x,

ls_parex TYPE bapiparex,

ls_bape TYPE bape_vbak,

ls_bapex TYPE bape_vbakx,

lt_parex TYPE STANDARD TABLE OF bapiparex.

MOVE iv_vbeln TO ls_bape-vbeln.

ls_bape-zz_fields1 = is_vbak_disc-zz_fields1.

ls_bape-zz_fields2 = is_vbak_disc-zz_fields2.

ls_parex-structure = 'BAPE_VBAK'.

ls_parex-valuepart1 = ls_bape.

APPEND ls_parex TO lt_parex.

CLEAR ls_parex.

MOVE iv_vbeln TO ls_bapex-vbeln.

ls_bapex-zz_zz_fields1 = 'X'.

ls_bapex-zz_hb_zz_fields2 = 'X'.

ls_parex-structure = 'BAPE_VBAKX'.

ls_parex-valuepart1 = ls_bapex.

APPEND ls_parex TO lt_parex .

CLEAR ls_parex.

ls_order_header_inx-updateflag = 'U'.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = iv_vbeln

order_header_inx = ls_order_header_inx

simulation = iv_nocommit

TABLES

return = et_return

extensionin = lt_parex.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Read only

Former Member
0 Likes
960

The header (VBAK) works but the item (VBAP) does not work. I have tried with iv_nocommit = ' ' and iv_nocommit = 'X'. I do not get a short dump, but the data is not updated. Any more ideas?

Read only

Former Member
0 Likes
960

Hi,

I fixed the problem myself using the following

Basically:

I used simulation = ' '.

I moved the item numbers to the item and itemx tables with U as the item-updateflag.

I.E. it is important for the item table to contain the item numbers and an update flag.

Thanks,

Leanne