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

Batch Input

Former Member
0 Likes
1,197

Hi,

iam trying to create a bacth input for CO02.

i have this field in the internal table:

tp_m_obra LIKE afvgd-vgw01,

when i do this;

PERFORM bdc_dynpro USING 'SAPLCOVF' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVG 0806ORD_HEADER'.

PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVF 0101TAB_SUB_SCREEN'.

PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVF 0130SUBSCR_0101'.

PERFORM bdc_field USING 'BDC_CURSOR' 'AFVGD-VGW01'.

PERFORM bdc_field USING 'AFVGD-VGW01' ls_final-tp_m_obra.

i get this error:

"input value is longer than screen field"

can any one help me please.

Tiago Rebelo

Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Aug 10, 2010 4:09 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,084

Hi,

try:

data: vgw01_C(11).

...

vgw01_C = ls_final-tp_m_obra.

...

PERFORM bdc_field USING 'AFVGD-VGW01' vgw01_C.

Hope it helps.

Regards, Dieter

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,084

PERFORM bdc_dynpro USING 'SAPLCOVF' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVG 0806ORD_HEADER'.
PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVF 0101TAB_SUB_SCREEN'.
PERFORM bdc_field USING 'BDC_SUBSCR' 'SAPLCOVF 0130SUBSCR_0101'.
PERFORM bdc_field USING 'BDC_CURSOR' 'AFVGD-VGW01'.
shift ls_final-tp_m_obra left deleting leading space.  "<---try adding this
*or
write  ls_final-tp_m_obra to  ls_final-tp_m_obra using edit mask '==ALPHA'.  "<-----Try adding this
PERFORM bdc_field USING 'AFVGD-VGW01' ls_final-tp_m_obra.
Read only

0 Likes
1,084

Tks, but now i have this error:

"LS_FINAL-TP_M_OBRA" must be a character-like data object (data type C,N, D, T, or STRING) STRING)."

Read only

0 Likes
1,084

Hi,

Check the data type of the field, it should be a character data type.

Regards

Abhii

Read only

0 Likes
1,084

Declare a character variable of same size then move this value to the new variable and do it.

Read only

0 Likes
1,084

But the definition of the field is equal that is requested in the batch input field.

tp_m_obra LIKE afvgd-vgw01,

the batch input field is the same!

PERFORM bdc_field USING 'BDC_CURSOR' 'AFVGD-VGW01'.

I will try with your explanations.

tks

Read only

Former Member
0 Likes
1,085

Hi,

try:

data: vgw01_C(11).

...

vgw01_C = ls_final-tp_m_obra.

...

PERFORM bdc_field USING 'AFVGD-VGW01' vgw01_C.

Hope it helps.

Regards, Dieter

Read only

0 Likes
1,084

this is it!

thank you all