2 Replies Latest reply: Jan 13, 2011 2:22 AM by Muthusamy Sankaran RSS

Production order form

Kavana Mallanna
Currently Being Moderated

HI team

1)we have a "Z" smartform to trigger production order form ( co03).

however if i want to go to that form in SPRO, i am not able to find it all. please let me know where i can find this form attached to to print prod order form. i cheked in OPK8. but no form mentioned there is our customized form. also it has many forms for different actions. where as i am looking for the one which we can print by going into co03. something like purchase order form.

 

2)  also, we dont want this ( shop floor packet) to be printed for certain plants.

how to control this?

i think for this OPK8 helps --> spool param for users.

please confirm how to do this. there is one column "print list" and one "immed". whats the difference?

 

Thanks a lot.

regards

Kavana

  • Re: Production order form
    Muthusamy Sankaran
    Currently Being Moderated

    Hi,

     

    In OPK8 where you assign the print program,

    assign the smartform program for the particular list & link the order type to the program.

     

    In the ALV function call

    give in exporting

    • I_CALLBACK_USER_COMMAND = 'user_command '

     

    write a subroutine

    FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE

    slis_selfield.

    case whatcomm.

    when 'print'.

    • call 2 function modules here

     

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING FORMNAME = P_FORM "Your form name

    • variant = ' '

    • direct_call = ' '

    IMPORTING FM_NAME = FM_NAME

    EXCEPTIONS NO_FORM = 1

    NO_FUNCTION_MODULE = 2

    OTHERS = 3.

     

    IF SY-SUBRC 0.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    EXIT.

    ENDIF.

     

    • calling the generated function module

    CALL FUNCTION FM_NAME

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    • CONTROL_PARAMETERS = CPARAM

    • OUTPUT_OPTIONS = OUTOP

    • USER_SETTINGS = SPACE

     

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    IMPORTING

    • JOB_OUTPUT_INFO = TAB_OTF_DATA

     

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    • EXCEPTIONS

    • FORMATTING_ERROR = 1

    • INTERNAL_ERROR = 2

    • SEND_ERROR = 3

    • USER_CANCELED = 4

    • OTHERS = 5

    .

    IF SY-SUBRC 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

     

    endcase.

     

    endform.

     

    This is an example in the function gereated call give you own importing and exporting parameters.

     

    Regards,

    Sankaran

     

    Edited by: Sankaran M on Jan 13, 2011 9:22 AM

Actions