Skip to Content
0
Former Member
Dec 07, 2006 at 04:01 PM

Check a value via PEFORM in SapScript

340 Views

I have got a value in SapScript &VBDPR-FKIMG& and I want to check whether this field is 0 by passing the value through a PERFORM statement and then passing back a sy-subrc telling me whether it is 0 or not.

I am really unsure how to do this, as I am a complete novice when it comes to both SapScript and ABAP. I have got as far as below (not very far I know - sorry), but if anyone can help me go any further, it would be very much apprieciated!!!

SapScript:

/:   PERFORM CHECK IN PROGRAM Z_ZERO
/:   USING &VBDPR-FKIMG&            
/:   ENDPERFORM      

ABAP Program:

REPORT Z_ZERO.
FORM CHECK TABLES IN_PAR STRUCTURE ITCSY
                  OUT_PAR STRUCTURE ITCSY.

  IF sy-subrc = 0.

  ENDIF.

ENDFORM.                    " CHECK

Kind Regards

Carly