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

How to specify the type of table in the form parameters

How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies".

FORM getcertainday

USING

vacancies TYPE STANDARD TABLE

efirstday LIKE hrp9200-zfirst_day

lfristday LIKE hrp9200-zfirst_day.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Oct 23, 2007 at 07:30 AM

    FORM getcertainday

    USING

    vacancies TYPE tt_vacancies

    and define a table type

    TYPES: begin of ty_vacancies,

    ...

    end of ty_vacancies.

    TYPES: tt_vacancies type table of ty_vacancies.

    regards

    Hans

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2007 at 07:30 AM

    perform getcertainday

    tables vacancies

    using efirstday lfristday.

    form getcertainday

    TABLES

    vacancies STRUCTURE <Workara name having same structure as VACANCIES>

    USING

    efirstday LIKE hrp9200-zfirst_day

    lfristday LIKE hrp9200-zfirst_day.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2007 at 07:31 AM

    Hi

    Are you asking about subroutine program to declare a variable for perform statement etc

    if it so check this coding

    
    DATA: NUM1 TYPE I,
    NUM2 TYPE I,
    SUM TYPE I.
    
    NUM1 = 2. NUM2 = 4.
    PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
    
    NUM1 = 7. NUM2 = 11.
    PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
    
    FORM ADDIT
           USING ADD_NUM1
                 ADD_NUM2
           CHANGING ADD_SUM.
    
      ADD_SUM = ADD_NUM1 + ADD_NUM2.
      PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.
    
    ENDFORM.
    
    FORM OUT
           USING OUT_NUM1
                 OUT_NUM2
                 OUT_SUM.
    
      WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
    
    ENDFORM.

    If your issue is some other can u explain me clearly

    Regards

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2007 at 08:28 AM

    Hi Richa.

    Thanks for your reply, now it is refering the element, is it possible to refer to the type?

    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.