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
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