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

about PPVARC,disply fields in the form....

I have a requirement for using custom SAPSCRIPT for booking confirmation in Training and event management module..

One of them is fetching data from standard structure PPVAR (form parameters).But I need to modify the SAPscript and put some variables which are not present in PPVAR.There is another structure PPVARC which is for custom variables.

I found in Spro that we can define our custom variables in CI_PPVARC include in PPVARC structure.

while I created the custom field(Description) through that wizard

It created a subroutine <b>YHKRMIT30</b>(Name was given by me)

inside that subroutine it created a subroutine named <b>GET_Text</b>.

My question is:

I want to output this field:

in the form I wrote :&PPVARC-TEXT&

in the program(YHKRMIT30) I wrote:

....

gw_vdtab-dataset = 1.

LOOP AT t_course INTO w_course.

gw_vdtab-data = w_course.

gw_vdtab-dataset = 1.

APPEND gw_vdtab.

ENDLOOP.

....

data in table t_course is like:

name1 tel1

name2 tel2

name3 tel3

...

how to disply many lines in the form? becourse use the above code,just can list one line in the form.

what's the exactly meanings of gw_vdtab-dataset = 1.

can I put the second line data into gw_vdtab,use

gw_vdtab-dataset = 2?but in the form i just can write :&PPVARC-TEXT& how to display the other data?

Message was edited by: yang

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 07:56 AM

    Hi

    I'm not sure but u should implement the counter dataset for every new lines you have to print and in the field TBNAM and FIELD insert the fields to be printed.

    LOOP AT t_course INTO w_course.

    gw_vdtab-TBNAM = <structure name>

    gw_vdtab-FIELD = <field name to be printed>

    gw_vdtab-data = w_course.

    APPEND gw_vdtab.

    ENDLOOP.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      I understand it, but I can't try your trx or give me the trx you run the print.

      I believe the fm RH_FORM_OUTPUT manages the print and here the fm WRITE_FORM is called if:

      - DATASET of current record is different from nex record;

      - WDTEGR of current record is different from nex record;

      So I seem you transfer the data in right way

      Try to set a break-point in that fm to understand how it manages the print.

      Max

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.