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

Dump when updating validity date item in BAPI_CONTRACT_CREATE

flvia_s
Participant
0 Likes
1,203

Hi, experts.

I need your help on this:

We are facing a short dump when calling BAPI_CONTRACT_CREATE.

1. The programa that calls the BAPI uses the tables ITEM_COND_VALIDITY and ITEM_COND_VALIDITYX to set the validity of a item condition.

2. I have noticed that if I empty these two tables, the contract is created, not short dump occurs.

3. It has been happening since the Sistem upgrated to the latest EhP. Before it the program was working fine.

Here is how the values are filled in those tables:

  ITEM_COND_VALIDITYX-item_no     = 00010.

  ITEM_COND_VALIDITYX-item_nox   = c_x.

  ITEM_COND_VALIDITYX-valid_from  = c_x.

  ITEM_COND_VALIDITYX-valid_to       = c_x.

  ITEM_COND_VALIDITY-item_no    = 00010.

  ITEM_COND_VALIDITY-valid_from = p_date_from.

  ITEM_COND_VALIDITY-valid_to   = p_date_to.

Do you guy have any suggestion? Also, if I want to fill the field ITEM_COND_VALIDITY-SERIAL_ID how show I do it?

Best Regards,

Alm

Hi, experts.

I need your help on this:

We are facing a short dump when calling BAPI_CONTRACT_CREATE.

1. The programa that calls the BAPI uses the tables ITEM_COND_VALIDITY and ITEM_COND_VALIDITYX to set the validity of a item condition.

2. I have noticed that if I empty these two tables, the contract is created, not short dump occurs.

3. It has been happening since the Sistem upgrated to the latest EhP. Before it the program was working fine.

Here is how the values are filled in those tables:

  ITEM_COND_VALIDITYX-item_no     = 00010.

  ITEM_COND_VALIDITYX-item_nox   = c_x.

  ITEM_COND_VALIDITYX-valid_from  = c_x.

  ITEM_COND_VALIDITYX-valid_to       = c_x.

  ITEM_COND_VALIDITY-item_no    = 00010.

  ITEM_COND_VALIDITY-valid_from = p_date_from.

  ITEM_COND_VALIDITY-valid_to   = p_date_to.

Do you guy have any suggestion? Also, if I want to fill the field ITEM_COND_VALIDITY-SERIAL_ID how show I do it?

Best Regards,

Alm

5 REPLIES 5
Read only

Former Member
0 Likes
1,091

Check the format of the dates that you are sending it.  they should be YYYYMMDD.

Neal

Read only

0 Likes
1,091

Hi, Neal.

It is already in this right format.

Thanks,

Alm

Read only

0 Likes
1,091

I'm afraid that you are going to have to tell us what that short dump says before we can help you further.

Neal

Read only

0 Likes
1,091

Also are your sure that the from date is less than the to date?

Read only

Former Member
0 Likes
1,091

Alm S,

It looks you have to populate values for Fields

SERIAL_ID & COND_COUNT in both the structure

try to populate '0000000001' in serial_id & 01 in Cond_count field for   ITEM_COND_VALIDITYX &   ITEM_COND_VALIDITY table

Hope this will help

Raj Patel