on 07-27-2007 5:58 AM
hi Experts
I want to know
Hi
i want to know
1)Is it possible to call multiple layouts from one driver programe . How ?
2)u are not given the authority to change print programme.
can u add new fields to script ? If yes. How ?
3)What is NACE ? What is the purpose of NACE ?
4)Same print programe different outputs using different elements. How can be know that which element belongs to sales order or purchase order in form ?
Reply all the questions with proper reasons.
Thanks.
Hi
1)Is it possible to call multiple layouts from one driver programe . How ?
Yes, it is possible
In the driver program you have to call multiple OPEN_FORM fun modules and each fun module you can attach one form each.
2)u are not given the authority to change print programme.
can u add new fields to script ? If yes. How ?
By writing an external Subroutine in the SCRIPT using PERFORM you can cal an external program and fetch the external fields data intop script and can display.
How to call a subroutine form SAPscripts
The Form :
/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
*----
*
FORM CDE_CENT
*
*----
*
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.
3)What is NACE ? What is the purpose of NACE ?
NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
You should know the Application of a document first Like:
for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
so first select the Application type (ex: EF) for PO and press OUtput types
then a list will come in that you should know the related output type for PO.
in this case it is NEU,
select that and click on the processing Routines button on the left side
it will display the Medium, Driver Program and the Script form or smartform related to that document..
4)Same print programe different outputs using different elements. How can be know that which element belongs to sales order or purchase order in form ?
Yes, the same driver program can be used for different output types
for example same program RVORDER01 is used for sales order, enquiry, quotation etc
An entry for each output was first created in NAST table for the respective output type and that will differentiate the output in the program.
Reward points for useful Answers
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Yes, it is possible to call multiple layouts in one driver program.
EX:
Read output type from NAST table (rough idea, )
If <Purchase order>
OPEN_FORM
WRITE FORM "For all windows in PO layout
ELSEIF <Sales ORDER>
OPEN_FORM
WRITE FORM "For all windows in SO layout
ENDIF.
CLOSE_FORM
2) Yes, you can still add fields if you don't have driver program in your control. this can be done by calling sub-routines in your scripts.
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.
3) NACE is the place where you link your driver program and form
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.
4)Yes, the same driver program can be used for different output types each output was created in NAST table for the respective output type.
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.