cancel
Showing results for 
Search instead for 
Did you mean: 

about nace transaction

Former Member
0 Kudos

explain me about nace.give me the steps for modifying existing form using subroutines with syntax.plz.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

NACE tcode is used to link the driver program and form through output type..

Ex: Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.

Sample example for using sub-routine inside your SAP script..

Ex:

Go through this example

Ex.

/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>

/:USING &<field name>&

/:CHANGING &<field name1&

/:ENDPERFORM

Then create subroutine pool program and you have to write the code.

FORM ><subroutine name> tables int_cond structure itcsy

outt_cond structure itcsy.

data : value(20), value1(20). "do your own declarations

Read int_cond table index 1.

value = int_cond-value.

value1 = value1 + value.

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM.

Just rough idea given above.

<b>CLOSE THE THREAD ONCE YOUR QUESTION IS ANSWERED</b>.

Regards,

SaiRam

Former Member
0 Kudos
Former Member
0 Kudos

Hi

NACE is the transaction code to track the print program and forms.

the procedure for this is:

NACE->SELECT THE RELEVANT APPLICATION (SUPPOSE V1 FOR SALES)->OUTPUT TYPES->SELECT THE OUTPUT TYPE RELATED TO APPLICATION->.->PROCESSING ROUTINES->GIVE THE MEDIUM,PRINT PROGRAM AND FORM NAME AND FORM ROUTINES NAME(IN CASE IF IT IS THERE).SAVE AND TRANSFORT

NOW GOTO THE RELATED TRANSACTION CODE

IF U WANT TO CONFIGURE THE OUTPUT TYPE

FOLLOW THE PROCEDURE

Ex: SPRO--> sales and Distribution --> basic Functions --> output control --> output determination --> output determination using condition technique --> maintain output type determination for billing documents --> maintain output types(this is how functional peope does).

form routines:

FORM .. ENDFORM is used when retrieved data

needs to sent back to print program.

In SAPscript:

PERFORM < routine_name> in <report_name>

USING &var1&

CHANGING &var2&.

ENDPERFORM.

In Report:

FORM < routine_name> in_tab type ITCSY

out_tab type ITCSY

READ TABLE in_tab WITH KEY NAME = ‘var1’.

{Data Selection based on above value. It returns ret_value.}

READ TABLE out_tab WITH KEY name = ‘var2’.

out_tab-value = ret_value.

MODIFY out_tab.

ENDFORM.

reward points ifuseful..

Thanks,

Usha