08-21-2007 3:34 PM
i have a program z1 with some code selection screen and internal table(itab1).
i want to call z1 in another program z2 pasing selection screen values and
getting the data of internal table(itab1) into internal table of z2(itab2)..
can any one give me submit line that meets my requirement
its urgent
08-21-2007 3:39 PM
1. Calling program Z1 from Z2 : Use
SUBMIT Z1 ...
statement to call report
2. Getting the value of internal table: You will have to use
EXPORT obj1 ... objn TO MEMORY
in report z1 and
IMPORT obj1 ... objn FROM MEMORY
in program Z2 to pass internal table
08-21-2007 3:39 PM
1. Calling program Z1 from Z2 : Use
SUBMIT Z1 ...
statement to call report
2. Getting the value of internal table: You will have to use
EXPORT obj1 ... objn TO MEMORY
in report z1 and
IMPORT obj1 ... objn FROM MEMORY
in program Z2 to pass internal table
08-21-2007 4:11 PM
thanks for ur reply
z1 is standard hr(ldb) program i cannot change it
and hw to fill the selection screen fields of it
is there any other method of getting internal table values other than
export and import
08-21-2007 3:48 PM
hi
good
SUBMIT rsusr100
WITH user IN s_user
WITH vondatum = p_from "Changes since
WITH bisdatum = p_to "Changes up to
WITH add_prof IN s_prof1
WITH del_prof IN s_prof1
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_object
EXCEPTIONS
not_found = 1
OTHERS = 2.
thanks
mrutyun^