Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

syntactically incorrect?

Actually this isn't my program. I was tasked to debug it. im not so familiar using bdc. Can you help me out? Thank u!

FUNCTION Z_BAPI_UNBLOCK_SO.

*"----


""Local interface:

*" IMPORTING

*" VALUE(LV_SESSION) TYPE FLAG OPTIONAL

*" VALUE(LV_SO_NO) TYPE VBELN OPTIONAL

*" EXPORTING

*" VALUE(LT_RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2

*" TABLES

*" LT_ERRORS STRUCTURE BDCMSGCOLL OPTIONAL

*" LT_ERROR_MESSAGES STRUCTURE ZSD_SYSTEM_MESSAGE OPTIONAL

*CODES

IF lv_session = 'X'.

PERFORM open_group.

ENDIF.

  • First Screen

PERFORM bdc_dynpro USING 'RVKRED04'

'1000'.

PERFORM bdc_field USING: 'VBELN-LOW'

lv_so_no.

PERFORM bdc_field USING 'BDC_OKCODE'

'=ONLI'.

  • Second Screen

PERFORM bdc_dynpro USING 'SAPMSSY0'

'0120'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=FREI'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=SAVE'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=BACK'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=&F03'.

  • Third Screen

PERFORM bdc_dynpro USING 'SAPLSPO1'

'0100'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=YES'.

  • Fourth Screen

PERFORM bdc_dynpro USING 'RVKRED04'

'1000'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/EE'.

PERFORM bdc_transaction TABLES lt_errors

lt_error_messages

USING lv_session

'VKM3'

'N'

lt_return.

IF session = 'X'.

PERFORM close_group.

ENDIF.

ENDFUNCTION.

Tags:
Not what you were looking for? View more on this topic or Ask a question