Skip to Content
avatar image
Former Member

REGARDING MEDRUCK

hi guru,

i copied from standard form medruck.

i want add the telephone no. field in the address window.please give me the synatax.

i am facing problems.\

please help me.i will give points ...

thanks

subhasis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 30, 2007 at 06:19 AM

    Hi,

    give the telephone no field in the text editor what u write for address.

    /: itab-ad_tlnmbr1

    it will ok for displaying the field.

    please check it.

    please reward points,

    satish.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 30, 2007 at 12:08 PM

    Hi Subhasis.

    In the address window you need to call a subroutine of a subroutine-pool program sending the customer no. and fetch the telephone no in that subroutine and send it back to layout and print.

    /: PERFORM GET_TELNO IN PROGRAM ZTEST

    /: USING & -KUNNR&

    /: CHANGING &TELNO&

    /: ENDPERFORM.

    /* &TELNO&

    mention the proper fieldname of kunnr.

    write this in ztest.

    FORM GET_TELNO TABLE INPUT STRUCTURE ITCSY OUTPUT STRUCTURE ITCSY.

    *itcsy contains two columns name & value. name contains the fieldname & value contains the value of it.

    READ TABLE INPUT WITH KEY NAME = -KUNNR. " MENTION THE FIELDNAME U PASSED

    L_KUNNR = INPUT-VALUE.

    SELECT SINGLE TELNO FROM KNA1 INTO L_TELNO WHERE KUNNR = L_KUNNR.

    READ TABLE OUTPUT WITH KEY NAME = 'TELNO'.

    OUTPUT-VALUE = L_TELNO.

    MODIFY OUTPUT INDEX SY-TABIX TRANSPORTING VALUE.

    ENDFORM.

    Reward if useful

    regards

    ANUPAM

    Add comment
    10|10000 characters needed characters exceeded