Application Development 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: 

Error in Output--please ignore, not urgent

Former Member
0 Kudos

Hi friends,

I wrote a bdc to update the value in an outbound delivery thru VL02N transaction.

Everything is going fine n unexpectedly at some point i'm getting an error in output. Error is coming only sometimes not every time we execute the program.

Error is as below :

Cursor field LIKP-VLABDATA does not exist in the screen.

But that field is present in the screen and it is a customized field in VL02N at header level.

The bdc code is as below :

REFRESH bdctab.

PERFORM bdcdynpro USING 'x' 'SAPMV50A' '4004' '' ''.

PERFORM bdcdynpro USING '' '' '' 'LIKP-VBELN' vbeln.

PERFORM bdcdynpro USING '' '' '' 'BDC_OKCODE' '=HDET_T'.

PERFORM bdcdynpro USING 'x' 'SAPMV50A' '2000' '' ''.

PERFORM bdcdynpro USING '' '' '' 'BDC_SUBSCR' 'SAPMV50A 2502SUBSCREEN_HEADER'.

PERFORM bdcdynpro

USING '' '' '' 'BDC_SUBSCR' 'SAPMV50A 2126SUBSCREEN_BODY'.

PERFORM bdcdynpro USING '' '' '' 'BDC_SUBSCR' 'SAPMV50A 0611SUBSCREEN_BOTTOM'.

PERFORM bdcdynpro USING '' '' '' 'BDC_SUBSCR' 'SAPLZSD_DEL_SCRNTAB 9001CUSTOMER_SCREEN'.

PERFORM bdcdynpro USING '' '' '' 'BDC_CURSOR' 'LIKP-VLABDATA'.

PERFORM bdcdynpro USING '' '' '' 'LIKP-VLABDATA' newfreight.

PERFORM bdcdynpro USING '' '' '' 'BDC_OKCODE' '=SICH_T'.

CLEAR messages.

REFRESH messages.

CALL TRANSACTION 'VL02N'

USING bdctab

MODE tmpmode

UPDATE 'S'

MESSAGES INTO messages.

IF messages[] IS NOT INITIAL.

PERFORM messages.

ENDIF.

REFRESH bdctab.

Please let me know y i'm getting this error only sometimes and how to rectify.

Thanks in advance,

Sudha

Edited by: Julius Bussche on Jul 15, 2008 9:48 AM

2 REPLIES 2

Former Member
0 Kudos

Hi,

Delete this perform

PERFORM bdcdynpro USING '' '' '' 'BDC_CURSOR' 'LIKP-VLABDATA'.

It will not have any impact on your program. this staement is just to place the cursor in the field.

Thanks,

Rajinikanth

Former Member
0 Kudos

Please read "the rules of engagement" at the top of the thread before proceeding to ask more questions.

Many thanks,

Julius