‎2006 Jul 14 7:44 AM
Hi Experts,
I have developed a layout for VF02 and have attached to the t-code using t-code NACE. Im able to see the print output. But when i pass any varibale declared in the driver program to the layout, the value is not shown. For eg - i have a variable 'var1' declared as text holding a text value. But 'var1' when displayed in layout like &var1&, the value is not displayed.
But the varibles from VF02 display like vbrk-vbeln, vbrk-netwr are getting shown.
Is there any other way to pass values in user defined variable or ITAB to script layout when the layout is attached to a t-code using NACE. Im using open_form, write_form to pass values.
Any suggestins?
Rajiv Ranjan
‎2006 Jul 14 7:49 AM
go to nace and check that ur driver program and sap script both attech to the output type..
may be possible u attech costamize sapscript but not attech ur z driver programm.
‎2006 Jul 14 8:03 AM
Hi Kishan,
Have checked NACE. The name of driver program and script is correct. Is this to do something with the form routine name. I have a form routine in which two parameters are passed in which on of them is screen.
‎2006 Jul 14 8:16 AM
Hi,
If this is a sapscript and the additional fields are not supported by standard,then you need to write a routine in a layout to pass the variables, for this you need to have a program of type 'Subroutine pool', refer the following, this should help,
In layout,
/: PERFORM CONVERT_CURR IN PROGRAM ZIN_PUR_ORDER_PAY
/: USING &EKKO-WAERS&
/: CHANGING &LV_WAERS&
/: ENDPERFORM
In the program ZIN_PUT_ORDER_PAY
----
FORM CONVERT_CURR *
----
........ *
----
--> INP *
--> OUT *
----
FORM CONVERT_CURR TABLES INP STRUCTURE ITCSY
OUT STRUCTURE ITCSY.
DATA : LV_WAERS LIKE TCURC-WAERS.
READ TABLE INP WITH KEY NAME = 'EKKO-WAERS'.
CHECK SY-SUBRC = 0.
LV_WAERS = INP-VALUE.
Function module converts dummy currencies used for hedging rates to
the equivalent currencies recognised by the outside world.
CALL FUNCTION 'Z_CUSTOM_CURRENCY_CONV'
CHANGING
WAERS = LV_WAERS.
LOOP AT OUT.
CASE OUT-NAME.
WHEN 'LV_WAERS'.
OUT-VALUE = LV_WAERS.
ENDCASE.
MODIFY OUT.
ENDLOOP.
Rgds,
‎2006 Jul 14 8:20 AM
do one thing..
check table TNAPR give ur outpot name (kschl) and check what's entry there..