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

Small doubt in BDC

Former Member
0 Likes
1,414

Hi All,

What does '02' indicates in KOMV-KSCHL(02) ?

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
1,232

<li>It indicates row number 02 in table control

Thanks

Venkat.O

Hi All,

What does '02' indicates in KOMV-KSCHL(02) ?

8 REPLIES 8
Read only

venkat_o
Active Contributor
0 Likes
1,233

<li>It indicates row number 02 in table control

Thanks

Venkat.O

Read only

Former Member
0 Likes
1,232

HI,

This field must be figuring in some table control. The 02 in the brackets after the field signifies that it is the second line on the table control or a step loop. The item on which you received this after recording must have been on the 2 line on the table control.

Regards,

Sachin

Read only

Former Member
0 Likes
1,232

Hi Rajani,

KOMV-KSCHL(02) indicates the second line of the table control or in the item level.

Regards,

Vijay

Read only

Former Member
0 Likes
1,232

Hi,

I have a BDC program in which I am updating an existing line or adding a new line in the sales order.

I need to add a condition type in sales order. But when I try to add a new condition type I am getting error that

Field KOMV-KPEIN(02) is not an input field. Please help how to rectify this ?

Below is my code. Correct me if I am wrong .

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'POPO'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '0251'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_CURSOR' 'RV45A-POSNR'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV45A-POSNR' l_posnr.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4001'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV45A-VBAP_SELKZ(01)' 'X'.

CONDENSE w_ivbep1-wmeng.

IF w_ivbep1-wmeng = '0,000' OR w_ivbep1-wmeng = '0.000'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'PKAU'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4003'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'VBAP-ABGRU' '03'.

ELSE.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'PEIN'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4003'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'EIPO'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '0252'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV45A-ETDAT' g_date_rel.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'POSI'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4003'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV45A-VBEP_SELKZ(01)' 'X'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'SHLI'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4004'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV45A-ETDAT' g_date_actual.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'VBEP-WMENG' l_wmeng.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' '/EBACK'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '4003'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'T\06'.

PERFORM bdcdynpro_new TABLES t_bdcdata_rel USING 'SAPMV45A' '5003'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' '/00'.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'KOMV-KSCHL(02)' w_xkomv1-KSCHL.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'KOMV-KBETR(02)' w_xkomv1-KBETR.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'RV61A-KOEIN(02)' w_xkomv1-KOEIN.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'KOMV-KPEIN(02)' w_xkomv1-KPEIN.

ENDIF.

PERFORM bdcdynpro TABLES t_bdcdata_rel USING 'BDC_OKCODE' 'SICH'.

Read only

0 Likes
1,232

Hi,

By the error that you are receiving it can be meant that yo are trying to add a line item into the table control where there already exists a value and has been ssaved. So it is input disabled. If you need to add an new line item, first you will have to find out the highest line item in which an entry exists, then you will need to incremetn it by one and then pass then variable in your code instead of your fixed value (here 02) as an index to the line item where a new condition item needs to be added.

Check any BDC program where table control is being handled. That may help you understanding the issue that you are facing.

Regards,

Sachin

Read only

Former Member
0 Likes
1,232

it is saying ,in that particular screen the field kpein is not an input field, means it is in disable mode so when you are trying to enter data to that disabled field it is giving you the error.

Read only

Former Member
0 Likes
1,232

Hi All,

Thank you very much for all your support to resolve this issue.

Now I can add the new condition type. But I am facing another problem.

When I run the program in display all mode, the condition type is updating in the sales order.

But when I run no display mode, it is not updating.

Can you please anyone tell me what could be the reason ?

Read only

0 Likes
1,232

This is a new (separate) question. Please assign poi(n)ts to those who helped you and mark it as solved. Then ask your question in a new thread.

And also please respect the 2,500 character limit in posts - post only the relevant portions of code.

Rob