IW21 Retrieving the maintenance cycle text while creation of work order

Hi Experts,
My requirement is to display the maintenance cycle text on the print preview while creating a work order via transaction IW21.
Since the print preview is clicked before saving the work order, the data from the work order has not been updated in the database tables (AFVC, PLWP).
Hence, the maintenance cycle text will have to be accessed through a runtime structure.
The text has to be fetched in a subroutine program which is called from the SAPscript.
I tried accessing the global data while debugging. However, the maintenance cycle text does not seem to be present.
Please help.
Regards,
Anusha

It is inappropriate to produce a SAPScript prior to save, IMHO.  What prevents the user from changing something after the print preview was done in this case?
At any rate, you'll find that some data values, like document numbers, etc., are not set until the user has saved the document.   The document needs to be saved, and SAPScript generated at the end of that process.

Similar Messages

  • To retreive the Maintenance Cycle for a Maintenance Package

    Hi All,
    I am trying to retrieve the 'Maintenance cycle' for a Package in the Maintenace package of the Maintenance strategy.
    I tried table T351P, but except 'Maintenance Cycle' i can see all other fields.
    In IP11 and in IP03 transactions i can see the Maintenace cycle field in the grid where maintenance packages are listed.
    But could not find a way to retrieve the maintenance cycle.
    Appreciate if you guys could help me out in getting the Maintenance Cylce.
    Cheers,
    Jaffer Ali.S

    Hi,
    Check the table MMPX Maintenance cycle short texts .
    Regards,
    Ankur Parab

  • How To Retrieve the Maintenance Package in PM Module for the Maint. Strateg

    Hi All,
    I am trying to retrieve the 'Maintenance cycle' for a Package in the Maintenace package of the Maintenance strategy.
    I tried table T351P, but except 'Maintenance Cycle' i can see all other fields.
    In IP11 and in IP03 transactions i can see the Maintenace cycle field in the grid where maintenance packages are listed.
    But could not find a way to retrieve the maintenance cycle.
    Appreciate if you guys could help me out in getting the Maintenance Cylce.
    Cheers,
    Jaffer Ali.S

    Tortsen,
    I tried the solution suggested by you.Here's what i did :
    I executed the  ARCHIV_GET_CONNECTIONS with input field  OBJECTTYPE values as BUS2104.It gives me some entries in the output connections table.From the results , i picked up the ARCHIV_ID and ARC_DOC_ID fields as suggested by you.
    I went to execute SCMS_AO_TABLE_GET  with above two values as import parameters and COMP_ID = "data".But it does not give me any output.It says "HTTP error: 404 Not Found". Any idea why is it so?
    Then i went to try SCMS_DOC_URL_READ .I find here that there are two mandatory parameters viz . STOR_CAT , DOC_ID.I tried giving the ARCHIV_ID  value above as value for  STOR_CAT . But it does not recognize it.Then i went to the table SDOKSTCA to look for any valid values for STOR_CAT , but i am not sure which one applies to my scenario.How do i find this?
    i'll appreciate any help.
    Thanks,
    Karambir Singh

  • Maintenance Cycle Text from IP03

    HI,
       How to get the Cycle, Unit and Maintenance cycle text  under the tab Maintenance Plan Cycle from the Transaction IP03.??
    Regards
    Anji

    hi,
    use these tables.
    MMPT
    MMPX
    T351X.

  • Not able to closing the maintenance cycle of charm

    Hi Team
    I am not able to close the maintenance cycle of charm.
    I had already tried with the phase utility report, I had checked my all authorizations and it is fine.
    I had gone through most of SCN queries for same, current phase of project cycle is completed however. Not able see the any error logs in SLG1.
    Regards
    Harsh

    Hi Rishav,
    We had resolve the issue as now we are able to close the cycle successfully,
    But new CTS project is not being generated, Any idea, should we need to check this with SAP again.
    B R
    Harsh

  • How to retrieve the Line item Text

    Hello,
    I need to retrieve the Line item Text in the PO (Material PO text). Can anyone provide me a sample code? i need to display this in a smartform.
    I could not retrive it from the Function Module READ_TEXT.
    Can any one help me regarding this?
    Regards,
    kvsskirankumar

    HI,
    Use function module READ_TEXT to fetch PO line item text by passing id, language, name and object.
    For Ex:-
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT             = SY-MANDT
        id                      = 'F01'
        language          = 'E'
        name                 = << concatenate PO number & line item>>
        object                = EKKO
      tables
        lines                   = g_t_ltext.
    Thanks & Regards
    Sudheer Madisetty

  • When i add text to PDFs and work on the file for awhile, my red added text starts to turn into red X's with a box around them. I have OCRs turned off, i have the latest update, and i have registered the product. What is happening to my text while i'm work

    When i add text to PDFs and work on the file for awhile, my red added text starts to turn into red X's with a box around them. I have OCRs turned off, i have the latest update, and i have registered the product. What is happening to my text while i'm working on these files? On top of this, my red arrows get moved around also.

    Hi ,
    Could you please update me with few details like what version of Acrobat are you using?
    What OS do you work on ?
    Do you experience this any particular PDF or happens with all of them?
    Did you try the same with turning on the OCR ?Please check the same and compare the outputs .Does that help you in anyway ?
    If the file is not confidential ,could you please share the file with us so that we can analyse it our end and revert you with the appropriate answer .
    Please share the file on [email protected] and please cc [email protected] as well .
    Regards
    Sukrit Dhingra

  • Transfering the Cost from Cost center to PM Work order

    Hi all,
    We have a scenario.
    we are doing material consumption from storage locaiton to a cost center using 201.
    when the material requirement comes from work order, we are doing reverse consumption posting from Cost center to storage location using 202. and then issue the material to work order using 261.
    Is there any way, that we can move the cost directly from cost center to work order (skipping the storage location in between).
    Thanks in advance.
    Piyush

    Hi,
    I guess Initially you are transferring material (201 movement) from Central Warehouse to Cost Center assigned to each department. After that, if you get any reservation from the particular department work order, you are issuing the components to work order by doing 202 & 261 movements.
    You can follow either one way.
    1. Without doing 201 movement type, once you create a order, based on reservation you can do 261 movement to order from central warehouse directly.
    OR
    2. Define storage location, do the stock transfer between storage locations. While creating maintenance order, assign the concern storage location in the order. So from that storage location, you can do 261 movement. Also by Material valuation, you can find the value of materials as well.
    Regards,
    Maheswaran.

  • Issue during automatic Creation of Work Order from Notification

    Hi,
    I have a issue during automatic Creation of Work Order from Notification.
    BADI implemented: NOTIF_EVENT_POST
    BAPI called in BADI: BAPI_ALM_ORDER_MAINTAIN
    I am able to create Work Order successfully but after that i need to update notification header with created work order number.
    But i am unable to update the same (VIQMEL-AUFNR).
    Can anybody provide solution for the same!
    Thanks,
    Kumar.

    Hi,
    Any inputs on above posted issue!
    Thanks in advance.
    Thanks,
    Kumar.

  • How to retrieve the 'Where Clause' text?

    Hello all,
    I have created a package to retrieve all the DML's executed against the database for the day, for a particular user. DBMS_LOGMNR package was used to retrieve DMLs. But the DMLs retrieved have their 'WHERE' clause text converted to ROWID's. I need to find out the 'WHERE' clause with the parameters.
    I tried retrieving values from the v$sql views, but that information is cryptic and very volatile.
    Is there a way to retrieve the 'Where' clause? If not, is there a way to retrieve the 'WHERE' clause information using a trigger against the corresponding table.
    I am desparately lookin'for a solution. Hope someone out there can help me out.
    Regards,
    Prabu Raghav.

    Hi Andrew,
    Thanks for the suggestion.
    I am using Oracle 8i not 9i.FGA using DBMS_RLS let's me add policies and retrieve all other information about a user except the SQL statement that's executed by the user.
    I want to retrieve the Current sql statement executed against the table by a particular user and record it.
    Any suggestions?
    Regards,
    Prabu Raghav.

  • How to retrieve the data in texts field for ME23N

    hai all,
    i need to do some coding for the item texts field for PO, which can be saw under ME23N. i need to retrieve the details in the text. but i have no idea how am i going to get the data from that field, which table is it under for PO?
    please advice. thanks

    Hi,
    the texts will be stored in STXH table..u need to pass the four values TDOBJECT
    TDNAME
    TDID
    TDSPRAS...U will get the text details
    Or
    use the FM 'READ_TEXT'.
    cehck the below links
    http://www.sap-basis-abap.com/sapac002.htm
    FM READ_TEXT
    reward if helpful.
    Regards,
    Nagaraj

  • BOM Selection Mandatory while creation of Production Order

    Hello Friends,
    I would like to know that is there any option other than production version which makes it mandatory to have valid BOM must for creation of Production order / coversion of planned order to Production order.
    I have tried with Production version option but it doesnt throw any error in case BOM with inactive status has been selected in it & also Production order gets created & released.
    Before going for user exit / enhancement option, I just wanted to ensure that it is not possible with standard SAP.
    Kindly share your views on the same.
    Your urgent replies will be highly appreciated.
    Regards,
    Tejas

    Hello Tejas,
    I think this is standard SAP Behaviour.
    Try with following exits:
    PPCO0018
    PPCO0012
    Also check out the following link:
    [How To Make BOM Mandatory while creating Production Order;
    Regards,
    Vinod

  • No commitment Item Update while creation of Sales order

    hi,
    I have  maintained Derivation Rule
    Co Code / GL/ BA/ Plant / S Loc/ = Fund / Comitement / Fund Center.
    Stil in that case at the time of creation of Sales order, systeme is giving error (++No commitment Item Update M V2225++)
    And also i have maintained the Comitement Item in GL master.
    Could you give me some solution.
    Thanks
    Nilesh R

    Hi Nilesh R,
    Please check the following information of Consulting Note 1268001 (the same for funds center is valid to commitment item):
    1.  You receive the error message in a Sales Order (SD) process.
       a) SD customizing settings for FM objects.
       You can set "commitment item" as an optional entry in SD customizing settings for field status. This can be checked in the IMG path: SPRO -> Public Sector Management -> Funds Management Government-> Actual and Commitment Update/Integration -> Integration ->
       Maintain Field Status for Assigning FM Account Assignments
       You should have a record with Object type = '04' (sales order).
       It is not necessary to have the field as required (unless you want to insert it in the origin process) due to the fact that
       this can avoid the account assignment derivation between CO objects and FM objects. The field can not be hidden otherwise it will be not derived.
       For more information, check note 572729.
    The system response depends on how you defined the fields of the FM dialog box using Customizing activity 'Maintain Field Status for Assigning FM Account Assignments':
         -  The fields of the FM dialog box are defined as ready for input ('Opt. entry' or 'Req. entry') in Customizing:
            If you change the reference object in the sales order, the system does not re-derive FM data automatically. For that, you
            must navigate to the FM dialog box and, by choosing icon 'Redetermine account (F5)', trigger the derivation manually.
         -   The fields of the FM dialog box are defined as not changeable ('Display') in Customizing:
             If the reference object is changed in the order, FM data is redetermined automatically.
         -  The fields of the FM dialog box are defined as not displayable ('Hide') in Customizing:
             FM data is not determined.
    Therefore, set the field status to optional permit the user to enter the FM objects manually and still benefit from the possibility to
    automatically derive the FM objects from a CO object.
    For more information on integrating Plant Maintenance, Sales and Distribution and Project System, see the SAP Library Accounting -> Public Sector Management -> Funds Management -> Actual and Commitment Update -> Integration with Plant Maintenance, Integration with Sales and Distribution and Integration with Project System (Network).
    You can also check the documentation available in the IMG menu of the status (written above).
       b) If you do not want to integrate sales order process within PSM-FM, you should consider to deactivate this integration in
          customizing transaction OFUP. In release EA-PS 1.10 and 2.00 modification note 591573 is available.
    Please also check consulting note 1267998 and let me know if you have used FMDERIVE trace tool.
    If you want to have SD integrated to FM, please check if in OFUP the flag of this integration is accordingly set.
    If you work with free-of-charge sales order line items mixed with line items having value, please consider to apply note 1441847 (if it is valid to your current release/package).
    I hope this answer your inquiry.
    Best Regards,
    Vanessa Barth.

  • Credit Check while creation of Sales Order for Item Category Purchase Req

    Hi Experts,
    We are creating Sales Order using an Order Type ABCD for a material 1000. While creating Sales Order, we use Item categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO).
    Credit Check settings are there at Order Type ABCD as well as all the Item Categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO). We are trying to test a scenario where a customer does not have enough credit limit while creating a sales order.
    When we create a sales order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP), credit check fails because our customer does not have enough credit limit, so that Sales Order gets created and Delivery does not get created (This is what we want), then we go into VKM1 manually and relase the sales order and then if we go to VA02 and check the status of the Sales Order, it says sales order status is complete. My Sales Team is saying here also Purchase Requisition is getting created.
    When we create a sales order for Item category ZOBO, it is going into Purchase Requisition screen. Once we give another plant in the create purchase requisition screen and save it we are getting a message that cannot create Purchase Requisiton because of Credit Block.
    The settings were same for all the Item categories.
    1) What made difference to complete Purchase Requisition for Item Categories (ZOVD, ZOVB,ZOST,ZOVP) and not for Item Category ZOBO when my customer is not having enough credit Limit.
    2) Why Purchase Requisition screen is not coming for us when we create an Sales Order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP). We only get Create Purchase Requisiton Screen for Item Category ZOBO.
    Thanks
    Rajanikanth

    Hi,
    None of the Item Categories has Create PO Automatically.
    Thanks
    Rajanikanth

  • User exit to enhance PR creation from work order (WO)

    Hi Experts,
    When creating a work order, we can also automatically create PR (Purchase Requisition).
    My client has a requirement to change the document type of the PR (BSART) based on the order type of the WO.
    I have searched through some exits haven't found any that can be used to manipulate the PR creation process.
    Does any one have any knowledge of user exit or BADI that can be used to achieve this? Your help is greatly appreciated.
    Best Regards,
    Fandi

    Hi Fandi,
    Try to use exit COZF0001 or COZF0002.
    Regards,
    Ari

Maybe you are looking for

  • How to use a CTE in a CASE statement?

    Hi everyone, I'm trying to use a CTE in a CASE statement and getting error. In fact, I'm not sure how to use a CTE in this case and this is the first time I'm using a CTE. I managed to build a CTE successfully but, failed to incorporate it in the CAS

  • Lost itunes on external hard-drive!

    Yikes! I think I lost my music. I have been keeping my itune files on a lacie external harddrive, in order to keep my ibook free of space. For the most part, we import new songs only when the external is hooked up so that all the new files go right i

  • Meaningful Slideshow module update, please - Ken Burns effect

    Just upgraded to LR 5 from LR 3.  I'm floored that there still has never been any sort of meaningful update to the slideshow module. Assume you want to make a slideshow for a funeral.  (That's probably what most people actually do with slideshows any

  • Stopping the Users from Postings Transactions in a Currency

    Hi Now that Slovakia currency has switched over to EURO, we want to stop our users from posting the transactions in SKK currency accidentally. Is there some config settings that can be done for this purpose..

  • HTTP start problem

    Hi All, I am unable to start the http server for APEX 3.1.2.00.02, database 10.2.0.4.0 on redhat 5, when I start using opmn I am getting following error opmnctl: starting opmn managed processes... =====================================================