Skip to Content
0
Former Member
Jul 15, 2008 at 09:27 AM

Error in Output--please ignore, not urgent

28 Views

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