cancel
Showing results for 
Search instead for 
Did you mean: 

medruck change

Former Member
0 Kudos

Hello Friends,i want to change medruck and i did as per below..but am not getting the logo neither the header w.r.t me22n.

I did R&D for several days but no result.Plz help me.

STEP 1.

-


Goto Transaction Code <SE71> and

select from Menu UTILITIES ->Copy from Client.

Enter the Standard Form Name, It source Client 000 and the target Form Name that you want it to be saved as on your client.

Say you are naming it as zmedruck1.

Click on EXECUTE.

STEP 2.

-


Converting form to English.

Open zmedruck1 in <SE71> With language DE.

Then goto UTILITIES -> Convert Original Language from DE to EN.

Then you can modify the layout for example, chaging the logo, or changing the headers, or adding any new code to do some calculation etc.,

SAVE THE CHANGES AND ACTIVATE.

Then select from the menu FORM -> CHECK -> TEXT.

SELECT your driver program name from the list adn click on COPY.

If you don't see the program name in the list then click on

'APPEND PRINT PROGRAM' and add your program name and then select it from the list and click on COPY.

STEP 3: Assigning our form to the standard print program.

-


Start Tr.Code <NACE>.

In our present case since we are working on 'Purchase order' we have to select EF and click on the button Output Types.

Then on Right hand side, scroll down and select NEU - New P O Printout.

(This may change for different programs).

Then Double click on Processing Routines on Left hand side.

Change from Display -> Change Mode.

Give your form name (zmedruck1) for printoutput and SAVE.

STEP 4:

-


Start Tr.Code <ME22N> since you are working on Purchase order and click on print Preview to make sure your layout etc., changes are OK. If not again you have to make the changes accordingly.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

1

Edited by: PRASHANT SINGH on Aug 20, 2009 12:04 PM

Former Member
0 Kudos

i got my prb solved thank u dear...now another thing i want 2 ask...

i am trying 2 replace medruck by my customized smartform..what changes do i need to do in sapmf06 in nace.

The following i got from here..but i am confused whether to comment all already availble code and input these code.if am doing that gives error..plz comment

the first program i got is:

form entry_neu using ent_retco ent_screen. data: l_druvo like t166k-druvo, l_nast like nast, l_from_memory, l_doc type meein_purchase_doc_print. * Data Declaration for PO smartform Modification DATA: fname TYPE rs38l_fnam, xkomk TYPE TABLE OF komk, gs_output TYPE ssfcompop, gs_dialog TYPE ssfctrlop. clear ent_retco. if nast-aende eq space. l_druvo = '1'. else. l_druvo = '2'. endif. call function 'ME_READ_PO_FOR_PRINTING' exporting ix_nast = nast ix_screen = ent_screen importing ex_retco = ent_retco ex_nast = l_nast doc = l_doc changing cx_druvo = l_druvo cx_from_memory = l_from_memory. check ent_retco eq 0. IF tnapr-sform NE ' '. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = tnapr-sform IMPORTING fm_name = fname EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3. IF sy-subrc EQ 0. gs_dialog-no_dialog = 'X'. gs_dialog-preview = 'X'. gs_output-tddest = 'LP01'. gs_output-tdnoprev = ' '. gs_output-tdnoprint = ' '. gs_output-tdimmed = 'X'. gs_output-tdnewid = 'X'. CALL FUNCTION fname " modify the interface as per your needs EXPORTING control_parameters = gs_dialog output_options = gs_output user_settings = ' ' zxekko = l_doc-xekko zxpekko = l_doc-xpekko TABLES l_xekpo = l_doc-xekpo l_xekpa = l_doc-xekpa l_xpekpo = l_doc-xpekpo l_xeket = l_doc-xeket l_xtkomv = l_doc-xtkomv l_xekkn = l_doc-xekkn l_xekek = l_doc-xekek l_xkomk = xkomk EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. ELSE. CALL FUNCTION 'ME_PRINT_PO' EXPORTING ix_nast = l_nast ix_druvo = l_druvo doc = l_doc ix_screen = ent_screen ix_from_memory = l_from_memory ix_toa_dara = toa_dara ix_arc_params = arc_params ix_fonam = tnapr-fonam "HW 214570 IMPORTING ex_retco = ent_retco. ENDIF. ELSE. CALL FUNCTION 'ME_PRINT_PO' EXPORTING ix_nast = l_nast ix_druvo = l_druvo doc = l_doc ix_screen = ent_screen ix_from_memory = l_from_memory ix_toa_dara = toa_dara ix_arc_params = arc_params ix_fonam = tnapr-fonam "HW 214570 IMPORTING ex_retco = ent_retco. ENDIF. endform.

SECOND ONE IS:

details of the nace Configugaration will be

Driver Program -- SAPFM06P routine will be - ENTRY_NEU script form - MEDRUCK

if you want to convert it into Smartform u have to migrate that script form into Smartforms and do the following changes in the driver program .

REPORT Z_ SAPFM06P.

INCLUDE rvadtabl.

INCLUDE rle_print_forms.

START-OF-SELECTION.

PERFORM entry_neu USING space space.

FORM entry_neu USING return_code us_screen.

DATA: lf_retcode TYPE sy-subrc.

xscreen = us_screen.

PERFORM processing USING lf_retcode

us_screen.

IF lf_retcode NE 0.

return_code = 1.

ELSE.

return_code = 0.

ENDIF.

ENDFORM. "ENTRY_NEU

FORM processing USING cf_retcode proc_screen.

DATA: lf_fm_name TYPE rs38l_fnam.

DATA: ls_composer_param TYPE ssfcompop.

DATA: ls_recipient TYPE swotobjid.

DATA: ls_sender TYPE swotobjid.

DATA: ls_addr_key LIKE addr_key.

p_ebeln = nast-objky. u201C PO Number Assignment

PERFORM checkinput. u201C u2013 check the input value

PERFORM headerdata. u201C Fetching the header data

PERFORM itemdata. u201C Fetching the Item Data

PERFORM process. u201CFinal internal table Population

PERFORM call_sform. u201C caling the Smartform

endform. "processing

Regards ,

plz guide me in above prog.s

Former Member
0 Kudos

can you check your LOGO resolution , if your logo is fit the your window or not, check your window size ...