Automatic Generation of form Printing for an Order

Hi,
In an Order one line itme dates are like this <b>from 29.03.2007 to 29.03.2008</b>.
Here year is splitted into 2 parts. One is <b>1st of Jan to 30th June</b>, second one is <b>1st July to 31st Dec</b>.
           So that my requirement is like this.
1) I need to print the form automatically when an Order is created.
2) Every <b>June 15th</b> and <b>Dec 15th</b>  I need to print the form for that Order
    automatically with some other data.
*--Similarly I need to trigger the form in this way automatically for all Orders.
How can I trigger the Form automaticall for the above requirement.
Regards,
Balavardhan.K

simple,
create one new program  not driver program . Then u have to call that FORM
1.Get all the data created during the dates.
split the data into , based on the date ranges.
2.
loop at itab1.
perform open_form
            write_form
            close_form
endloop.
loop at itab2.
endloop.
1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
2) Every June 15th and Dec 15th I need to print the form for that Order
automatically with some other data.
<b>---> what ? what u split ?</b>
*--Similarly I need to trigger the form in this way automatically for all Orders.
<b>---> Config+ABAP</b>
How can I trigger the Form automaticall for the above requirement
Regards
Prabhu

Similar Messages

  • Seperate Adobe Form printing for each order

    Hi,
    I have a scenario where i need to print Adobe Form for each order.
    Right now i am handling this from print program(Executable) by looping at the Adobe form FM for each order.
    So it will print seperate Adobe form for each order with corresponding Header & Item Data.
    To get next order i need to hit on right & last arrows etc...
    So right now i am handling it through Print Program.
    Is there any way it can be handled directly at Adobe Form level.
    By passing all orders to Adobe FM at a time (Intsead of looping) and handling Adobe Form printing for each order at Adobe Form level itself!
    Thanks in advance.
    Thanks,
    Kumar.

    simple,
    create one new program  not driver program . Then u have to call that FORM
    1.Get all the data created during the dates.
    split the data into , based on the date ranges.
    2.
    loop at itab1.
    perform open_form
                write_form
                close_form
    endloop.
    loop at itab2.
    endloop.
    1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
    2) Every June 15th and Dec 15th I need to print the form for that Order
    automatically with some other data.
    <b>---> what ? what u split ?</b>
    *--Similarly I need to trigger the form in this way automatically for all Orders.
    <b>---> Config+ABAP</b>
    How can I trigger the Form automaticall for the above requirement
    Regards
    Prabhu

  • Automatic Generation of Settlement Rules for PM order

    Hi All,
    I am doing a maintenance orders settlement and I have the fallowing issue:
    My client has 2 types of equipment, namely vehicles and industrial equipment. Both have particular rules.
    For vehicles, we need to control all cost by an internal order
    Industrial equipment costs will be control by cost center.
    So, cost center is maintained for industrial equipment, and Settlement Order for vehicle equipment.
    I have a unique order type for which in Settlement profile I have entered Order and Cost Center as 'Settlement Optional' and default object type as CTR.
    When I create a PM order for vehicle, system cannot generate automatically the settlement rule, because in order type I have entered default object type as CTR and in equipment I just have the Settlement Order.
    But if I create a PM order for industrial equipment system create automatically the settlement rule, because cost center is maintained for industrial equipment and order type has default object type as CTR.
    In the allocation structure I have a receiver category for CTR and ORD.
    So, Could you help me how to generate automatically settlement rule for both cases without 2 order types?
    Thanks & regards,
    Hélder Nunes

    hi
    i think it is not possible to generate settlement rule based on equipment ,if you have specified the default settlement category in IMG ,it will be generated .
    check with your technical team whether user exit IWO10027 can be mapped
    regards
    thyagarajan

  • Print for Purchase Order

    Print for Purchase Order
    Hello All,
    My client wants messages default for Purchase order print in me22n.Now we are giving manually u201COut Put typeu201D,u201DMediemu201D, Language , etc.
    Please advise me how I can get those fields default.
    Thanks in advanceu2026

    Just maintain the condition record in MN04 for the Output type.
    NEU for the Key combination select Pur org/Document type
    Here maintain your pur organization then document type and Partner function as VN
    then in the top you find communication there enter the Local printer name or LOCL what ever.
    Save the condition record.
    Then for every PO this message setup will automatically come in PO.
    Check this link for further details:
    Re: No message generated for output of purchasing document
    Re: PO output determination...

  • Form Creation for Service Order

    Hi
    I am new to CRM Mobile, although I have worked in CRM for couple of years now.
    In our project there is requirement to print forms (attached to Service Order) from Laptop whenever company representative meets customer. For this CRM Mobile is being used.
    Now related to this I have few questions:
    1) Form Creation: In CRM online system we can create form in SMARTFORMS. Do we use the same tool for form creation? Where is it created and how is it downloaded to Laptops ? (I believe  to a transaction type we assign action profile which calls this form. This is brought into system using normal synchronization)
    2) Which Database tables does it refer to, normal CRM application tables or SMO tables.
    Please help me in this.
    Thanx & Regards
    Hits

    Hi,
    the kind of Mobile applications we are talking about here is only running on laptops or tablet PCs, not on handhelds. So normally the users have an additional portable printer with them when being in the field.
    Another thing: For the document generation there are two possibilities, MS word or crystal reports. Both have advantages and disadvantages which need to be analysed for the project.
    Regards,
    Wolfhard

  • To stop automatic generation of excise invoice for

    Dear Experts,
    I am creating Profroma Invoice just after Sales Order in export cycle. While saving the proforma invoice, system automatically generates excise invoice.
    Will you please guide me how to stop the Proforma Invoice from automatic generation of excise invoice?
    With regards,
    Jhelum Roy.

    Check the excise group for the transaction.
    The follow the following path in SPRO:
    IMG - LG- Tax on Goods Movements-India-Basic Settings-Maintain Excise Groups
    There uncheck the box EXCISE INV DURING BILLING
    As, this will create Excise Invoice automatically. So, it instructs the system to automatically create an outgong excise invoice immediately you create a commercial invoice or a pro forma invoice. The system creates the excise invoice in the background.
    Also, If you want to make use of this function, you must also define the default plant, excise group, and series groups in Customizing for Excise Duty, by choosing Business Transactions -> Outgoing Excise Invoices -> Maintain Default Excise Groups and Series Groups.
    If that is uncheck already, create & post inv single step indicator
    As, this is automatic posting for J1IS and it instructs the system to automatically verify and post excise invoices that you create using the Excise Invoices for Other Movements transaction.
    Thanks & Regards
    JP

  • Auto generation of settlement rule for PM orders that are Investment Measur

    Hi all
    Has anyone successfully automatically generated settlement rules on a PM order that is an Investment measure? The settlement receiver would be an asset. User exit IWO10027 doesn't work. Std settings don't work either because a settlement rule is auto generated for the AUC on the order during settlement (Note 195607) because of IM.
    Any ideas?
    Thanks
    CC

    for a PM order as investm,ent measure the system assumes that you wish to create an AuC hence no other settlement rule generation is allowed
    you can try by removing the asset class in the IM profile

  • Automatic Source of supply selection for Dependent orders.

    Hi Experts,
    I have a scenario where we have one FG (F1)  with two assembly components S1 and S2 .Assembly components have their own routings.All the master data is exist in APO as well.An order is created for FG and dependent requirements are generated on assembly Components S1 and S2.Please see below to find the clear picture of routings and operations
    In ECC
    Operations for FG
    Op3
    Op4
    Operations for S1
    Op1
    Operations for S2
    Op2
    We have four resources in Line 1 - R1,R2,R3 and R4
                                           Line 2 - R11,R12,R13 and R14.
    Operations are dispatched accordingly in routing.
    Op1 - R1,Op2 -  R2, Op3 - R3 and Op4 - R4
    In APO
    PDS created for S1,S2 and FG
    Each having two different PDS consisting resources of Line 1 In PDS 1 and Line 2 in PDS 2
    My requirements is when order is created against a requirement for FG then dependent requirments is generated for S1 and S2.After MRP run orders are created against dependent requirement.Now if i see the relationship for FG order in Ds Board I can see the dependent orders also.Since my op4 is a bottleneck resource, if there is not much capacity available to produce the order qty then I try to swtich the order from Resource R4 to Resource R14.I am just dragging the order from one resource to other resource but the problem is I want my S1 and S2 orders should also automatically move from R1 to R11 and R2 to R12.
    For Finished good's order source of supply is changing but for Assembly components orders its is not changing automatically.Please provide some solution how I can achive this scenario in PPDS.

    Hi Debasis
    No , it can be used also in Discrete Manufacturing , as APO point of view PDS is master  data which can be transferred from routing or recipe
    This Heuristic can be find in SCM 7.0 EHP2  only according to this link :
    https://websmp207.sap-ag.de/~form/handler?_APP=00200682500000002672&_EVENT=DISPLAY&_SCENARIO=01100035870000000122&_HIER_KEY=501100035870000009166&_HIER_KEY=601100035870000257667&_HIER_KEY=601100035870000258400&
    what's the your SCM Version ?
    Regards
    Rami

  • Form routine for sales order adobe forms

    Hi Friends,
    I have a requirement to create z adobe forms for sales order for customized output type.
    When i checked, there is no form routine designed for calling the adobe forms.
    So, i am planning to copy the standard print program which is available for script and smartforms and creating a z form routine to include the function modules for calling the adobe form.
    Can any one please let me know whether have you worked in any of the same kind of situations and my apporach is ok or anything else can be done.
    Thanks & Regards,
    Prabu

    Hello,
    Plz check your caller program for the same and just find out the output type. for that purpose use the Tcode: NACE for finding the output type than proceed accordingly.
    Regards,
    Akg

  • Automatic creation of service notification for maintenance order

    hi,
    I created one new document type (SR) as service requestion in material management.
    Then i create maintenance order for service and attached service master. System generated PR. Where document type to be given to get SR instead of PR.
    Kindly explain
    Regards
    sathish. R

    Hi,
    Please check the indicatorsin Actual cost/cost sales  and Valid recevivers in settlement profile.
    If for cost center : 1 settlement optional is maintained in valid recevivers and also for order
    and in actual cost/ cost sales: indicator to be settled in full is selected.
    Also check Allocation structure too if you have assigned the valid allocation structure.
    **check if you have assigned the valid settlement profile to order types.
    *****Most important after doing all these settings you need to create new order. for same order you will not get the automatic settlement rule
    Hope this helps.
    Regards,
    PMAddi

  • Automatic Creation of Settlement Rule for Maintenance Order

    Hi,
    While doing TECO for Maintenance Order, its asking for Settlement Rule. IF I click settlement rule, message is coming as Maintain Settlement Profile with options like With Default, Without Default & Cancel.
    I have maintained the Cost center in Equipment Master. Also I maintained Cost Center as Default Settlement receiver.
    Also I have gone through setting in Automatic Creation of Settlement Rule under Controlling Category.
    But I couldnt understand that. Can you please tell what are the steps to be done?
    Regards,
    Maheswaran.

    Hi,
    Please check the indicatorsin Actual cost/cost sales  and Valid recevivers in settlement profile.
    If for cost center : 1 settlement optional is maintained in valid recevivers and also for order
    and in actual cost/ cost sales: indicator to be settled in full is selected.
    Also check Allocation structure too if you have assigned the valid allocation structure.
    **check if you have assigned the valid settlement profile to order types.
    *****Most important after doing all these settings you need to create new order. for same order you will not get the automatic settlement rule
    Hope this helps.
    Regards,
    PMAddi

  • Automatic ORDRSP idoc creation problem for customer order

    Requirement;
    When client received order from customer through EDI, while creating order it has to check is there any difference in the order quantity and confirmed quantity. If any difference reason code should set up automatically at line item level (I configured reason code as "Quantity short" and it's not big deal to get this in user exit). After inbound  EDI order process, order response should invoke only one time that too first time (Not all the time for all orders) when there are line items exist with "Quantity short".
    First I'm trying to kick out ORDRSP Idoc from manually created order. While creating order which has confirmed quantity less than order quantity I setup item level reason code as "Quantity Short".
    I created condition table with conditions Sales org, Order type, Sold to party(from KOMKBV1) and item level reason code (from KOMPBV1).  I maintained condition record, partner profile.  But Idoc is not generating automatically after I created order manually with reason code at line item level.
    Can any one help me on this.
    Thanks in advance.

    >
    Ram_Lin wrote:
    > Requirement;
    >
    > When client received order from customer through EDI, while creating order it has to check is there any difference in the order quantity and confirmed quantity. If any difference reason code should set up automatically at line item level (I configured reason code as "Quantity short" and it's not big deal to get this in user exit). After inbound  EDI order process, order response should invoke only one time that too first time (Not all the time for all orders) when there are line items exist with "Quantity short".
    >
    > First I'm trying to kick out ORDRSP Idoc from manually created order. While creating order which has confirmed quantity less than order quantity I setup item level reason code as "Quantity Short".
    >
    > I created condition table with conditions Sales org, Order type, Sold to party(from KOMKBV1) and item level reason code (from KOMPBV1).  I maintained condition record, partner profile.  But Idoc is not generating automatically after I created order manually with reason code at line item level.
    >
    > Can any one help me on this.
    >
    > Thanks in advance.
    There are two things here
    1) the Output not getting generated
    2) Output is triggered but IDOC isnot generated.
    I feel the Output must not have triggered. this may be because generally the response IDOCs are riggered from the Header level and in the communication struture ( or in the condition record ) you have inserted a field from the Item level, so when the system is trying to trigger the output , the field value may be blank, you can check this in the determination analsysis and you may find an yellow icon in the field agains item reason code. you may have to modify the user exist to pass the correct value to this field.
    an alternative way is to trigger the output manually and see if the idoc is geenrated or not.
    If the output is triggered and the idoc is not generated. again look in the Processing log. there must be some error description why the IDOC is not triggered. Let us know the description of the error codes so that we can give an idea of where could you have gone wrong.
    Thanks,

  • Automatic generation of HU during Kit To Order EWM process, using VAS order

    Hi,
    Please help me with this process:
    My customer keeps components in stock in various HUs, lets say of 50 pieces each.
    When a customer orders 20 kits, where each kit is composed of product A + B, the need is to generate 20 HU, each of one containing the kit.
    I tried the Kit to order standard process in EWM, using VAS order.
    I succeeded to bring components A and B into a Pick-HU to the VAS work centre. The pick HU contains the POSC (step kitting).
    We also defined a packing specification where layout Kit is kitting relevant and second layout should generate the HU.
    Unfortunately the EWM "sees" the products already packed and doesn't create new HU.
    If I use the same process without pick-HU, POSC is not activated and newer less new HU are not generated.
    Any suggestion is welcome.
    Thanks.

    Hi,
    On your 1st question .The document type you want to generated on auto PO can be changed by selecting the default document per Transaction.For this go to
    MM-Purchasing-Define default values for document types.Here against the T code MB1A assign the desired document type.This will be taken for generation of the auto PO.
    On your 2nd question ,I am afraid the auto PO functionality requires items having material master.
    On your 3rd question  in MIGO 101 there is no provision of account asignment .
    Dhruba

  • Automatic Generation of Reservation Document from Sales Order

    Hello ABAP Peeps,
    I require some assistance. I need to have a resevation document to be created and saved automatically as soon as the Sales Order is saved. What sort of setting would I need to make for this to take place?
    Many Thanks
    Pranzo

    is an Abap forum, better ask in forums like or look via SPRO at the area Sales and Distribution, Sales, Sales Documents, Schedule Lines, Define Schedule Line Categories (VOV6).
    Regards,
    Raymond

  • Mass form printing for employees

    Hi all,
    I have made a smart form for employees and a driver program with logical database pnp. If I give say 10 employees in the selection screen and print the forms, I have to press print button 10 times. Is there any way we can avoid this? We want that print button should be pressed only once and smartforms of all 10 employees should get printed. Please suggest.
    Thanks
    Ribhu

    Jayanthi,
    I want to pass the employees to my form from selection screen at runtime. I hope my driver program'll make it clear
    REPORT  ZHRPAS0004.
    Database Tables
    Tables:
    pa0000, "Table for Actions
    pa0001, " Table for Organisational Assignments
    pa0002, " Table for Personal Data
    pa0041, " Table for Date Specifications
    pernr,  " Logical Pernr
    T528T,  " Position Texts
    T527X,  " Organizational Units
    T510,   " Pay Scale Groups
    T500p,  " Personnel Areas
    T526,   " Administrators
    T522t.  " Forms of Address
    infotypes :
    0000, " Action
    0001, " Organisational Assignments
    0002, " Personal Data
    0041. " Date Specifications
    Declaration of Variables
    data : E_PAREA TYPE PERSA,
           E_PCODE LIKE T500P-NAME1,
           E_EMPNAME TYPE EMNAM,
           E_EMPNO TYPE PERSNO,
           E_TERDATE TYPE DATS,
           E_POSIT TYPE T528T-PLSTX,
           E_DATE TYPE SY-DATUM,
           e_ADDFORM TYPE T522T-ATEXT,
           E_ORGUNIT TYPE T527X-ORGTX.
    DATA : WS_UCOMM LIKE SY-UCOMM.
    data : DAR like pa0041-dar01,
           dat like pa0041-dat01.
    data : v_year(4) type c,
           v_mon(2) type c,
           v_date like sy-datum,
           v_date1 like sy-datum.
    data : v_formname type tdsfname value 'ZSF_ODR_TER_01',
           v_fmname type rs38l_fnam.
    data: i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    Declaration of Constants
    constants : c_x type c value 'X', " Sign
    c_pernr(8) type n value '00000000', " Pernr
    c_val1(2) type c value '31', " Date Type
    c_val2(2) type c value '12', " Date Type
    c_val like p0041-dar01 value '01', " Date Type
    c_1 like pernr-persg value '1', " Emp Group
    c_type like hrp1001-otype value 'S', " Object Type
    c_date1 like sy-datum value '18000101', " Date
    c_date2 like sy-datum value '99991231', " Date
    r_all value 'X'.
    Selection Screen
    Selection-screen begin of block b2 with frame title text-001.
    selection-screen begin of line.
    parameter pdf radiobutton group smf.
    selection-screen comment 5(20) text-002.
    parameter prn radiobutton group smf.
    selection-screen comment 40(20) text-003.
    selection-screen end of line.
    Selection-screen end of block b2.
    At selection-screen
    At selection-screen.
      perform validate_screen.
    Start-of-Selection
    start-of-selection.
      perform get_period.
    Get PERNR from LDB
    get pernr.
    rp_provide_from_last p0001 space pnpbegda pnpendda .
    rp_provide_from_last p0000 space pnpbegda pnpendda .
    rp_provide_from_last p0041 space pnpbegda pnpendda.
    Get the form of address
      select single atext from t522t into t522t-atext where anred = p0002-anred and sprsl = sy-langu.
      if sy-subrc = 0.
        E_ADDFORM = t522t-atext.
      endif.
    Get the Personnel Area Long Description/Text
    select single name1 into t500p-name1 from t500p where persa = p0001-werks.
    Get the relevant date from 0041 (date repetitive structure)
    do 12 times varying dar from p0041-DAR01 next p0041-DAR02
                varying dat from p0041-dat01 next p0041-dat02.
    if dar = 'TD'.
    E_TERDATE = dat.
    ENDIF.
    enddo.
    Get the Org Unit Text of the employee.
    select single ORGTX from T527X into T527X-ORGTX where ORGEH = p0001-orgeh and SPRSL = sy-langu.
    if sy-subrc = 0.
    E_ORGUNIT = T527X-ORGTX.
    endif.
    Get the position text of the employee.
    select single PLSTX from T528T into T528T-PLSTX where PLANS = p0001-plans and SPRSL = sy-langu and OTYPE = c_type .
    if sy-subrc = 0.
    E_POSIT = T528T-PLSTX.
    endif.
    Assigning the values
    E_PAREA = p0001-werks.
    E_PCODE = t500p-name1.
    E_EMPNAME = p0001-ENAME.
    E_EMPNO = p0000-pernr.
    E_DATE = SY-DATUM.
    Get the values from respective infotypes to print the file          *
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = v_formname
    importing
    fm_name = v_fmname
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3.
    call function v_fmname
    exporting
       i_PAREA                      = E_PAREA
       i_PCODE                      = E_pcode
       i_EMPNAME                    = E_empname
       i_EMPNO                      = E_empno
       i_TERDATE                    = E_terdate
       i_POSIT                      = E_posit
       i_DATE                       = E_date
       i_ADDFORM                    = E_ADDFORM
       i_ORGUNIT                    = E_orgunit.
    *&      Form  validate_screen
          Validation on the screen
    FORM validate_screen .
    clear sy-index.
      loop at pnppernr.
      endloop.
      if sy-index GT 1.
        message 'Enter only one personal number' type 'E'.
      endif.
      if pnppernr-low is initial.
        message 'enter a personal number' type 'E'.
      endif.
    ENDFORM.                    " validate_screen
    *&      Form  get_period
          Validation on Period
    FORM get_period .
    clear: v_year,v_mon, v_date, v_date1.
      v_year = sy-datum+0(4).
      v_mon = sy-datum+4(2).
      if pnptimr1 = c_x. " Current Date
        pnpbegda = sy-datum.
        pnpendda = sy-datum.
      elseif pnptimr2 = c_x. " Current Month
        concatenate v_year v_mon c_val into v_date.
        concatenate v_year v_mon c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr3 = c_x. " Current Year
        concatenate v_year c_val c_val into v_date.
        concatenate v_year c_val2 c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr4 = c_x. " Upto Today
        pnpbegda = c_date1.
        pnpendda = sy-datum.
      elseif pnptimr5 = c_x. " From Today
        pnpbegda = sy-datum.
        pnpendda = c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = c_date1.
          pnpendda = c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          pnpbegda = c_date1.
          pnpendda = pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = pnpbegda.
          pnpendda = pnpendda.
        endif.
      endif.
    ENDFORM.                    " get_period

Maybe you are looking for