Skip to Content
author's profile photo Former Member
Former Member

sap script - se71 - change in form

Hi I tried to change as below but it giving me error as below. please provide me the solution.

change Code in script:

/: DEFINE V_QMATA.

/: PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &VBLKP-MATNR&

/: USING &VBLKP-WERKS&

/: CHANGING &V_QMATA&.

/: ENDPERFORM.

/: IF &V_QMATA& EQ 'Z0001'.

/E

/: ENDIF.

Error when i syntex check for sap script:

( Check by Go to text -> check)

Symbol expected

Too many parameters

Code in Calling program ( This program is my printing program)

form get_qmata TABLES fp_it_intab STRUCTURE itcsy

fp_it_intabb structure itcsy

fp_it_outtab STRUCTURE itcsy.

data : v_matnr like marc-matnr,

v_werks like marc-werks,

v_qmata like marc-qmata.

READ TABLE fp_it_intab INDEX 1.

CHECK sy-subrc EQ 0.

MOVE fp_it_intab-value TO v_matnr.

READ TABLE fp_it_intabb INDEX 1.

CHECK sy-subrc EQ 0.

MOVE fp_it_intabb-value TO v_werks.

select single qmata from marc into v_qmata where matnr = v_matnr

and werks = v_werks. .

READ TABLE fp_it_outtab INDEX 1.

CHECK sy-subrc EQ 0.

READ TABLE fp_it_outtab INTO wa_outtab WITH KEY name = 'I_QMATA'

BINARY SEARCH.

IF sy-subrc EQ 0.

wa_outtab-value = v_qmata.

move v_qmata to fp_it_outtab-value.

MODIFY fp_it_outtab INDEX sy-tabix transporting value.

ENDIF.

endif.

endform.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 15, 2009 at 10:13 PM

    Hi,

    In your below SAP-SCRIPT command, you are using "USING" twice which is not expected, use only once.

    PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &VBLKP-MATNR&

    /: USING &VBLKP-WERKS&

    /: CHANGING &V_QMATA&.

    /: ENDPERFORM.

    PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &VBLKP-MATNR& &VBLKP-WERKS&

    /: CHANGING &V_QMATA&.

    /: ENDPERFORM.

    Best Regards,

    Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 16, 2009 at 01:58 AM

    hi

    chk this

    /: DEFINE V_QMATA.

    /: PERFORM GET_QMATA IN PROGRAM ZRVADEK01

    /: USING &VBLKP-MATNR&

    /: USING &VBLKP-WERKS&

    /: CHANGING &V_QMATA&.

    /: ENDPERFORM.

    /: IF &V_QMATA& EQ 'Z0001'.

    /E

    /: ENDIF.

    FORM GET_QMATA TABLES input STRUCTURE itcsy

    output STRUCTURE itcsy.

    endform.

    regard

    nawa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 03:03 AM

    Hi,

    In Layout text element, Using parameters should be specified in seperate line. Move USING &VBLKP-MATNR& from PERFORM line to the next line as below. Your problem will be solved.

    /: PERFORM GET_QMATA IN PROGRAM ZRVADEK01

    /: USING &VBLKP-MATNR&

    /: USING &VBLKP-WERKS&

    /: CHANGING &V_QMATA&.

    /: ENDPERFORM.

    Hope this is helpful.

    Regards

    Sravan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.