Classification check of an internal order at run time, in KO01 KO02

Hi All,
i need to check if some Classification fields of an internarl order are been valued when i save yhe order in transaction KO01 and KO02.
In debugging mode I've found an interesting internal table: P100. If P100-W <> 0 it means that the corrisponding field is been valued, but i haven't found a way to use it inside any user-exit or BADI.
I'm focused on the user-exit EXIT_SAPLRKIO_002 because it stars at the save event.
Can anyone help me?
Thank you everybody!!
Regards,
Roberto

Hi,
try this inside your user-exit:
data: c_progn  VALUE  '(program name of transaction)<table name>[]'.
FIELD-SYMBOLS: <fs>       TYPE ANY TABLE.
ASSIGN (c_progn) TO <fs>.
In this way you can use table, structure or variable of program that call your user-exit a run time.
Regards,
Leo.

Similar Messages

  • Classification check of an internal order during KO01 KO02 transactions

    Hi All,
    i need to check if some Classification fields of an internal order are been valued when i save the order during transaction KO01 and KO02.
    I'm focused on the user-exit EXIT_SAPLRKIO_002 because it stars at the save event.
    Can anyone help me?
    Thank you everybody!!
    Regards,
    Roberto

    Hi,
    try this inside your user-exit:
    data: c_progn  VALUE  '(program name of transaction)<table name>[]'.
    FIELD-SYMBOLS: <fs>       TYPE ANY TABLE.
    ASSIGN (c_progn) TO <fs>.
    In this way you can use table, structure or variable of program that call your user-exit a run time.
    Regards,
    Leo.

  • Internal Order abap run time error

    hi,
    I am using sap ecc 6.00 ides i have not authoroty to access oss notes.
    I newly configurated internal order. But when i tried to post a document in fb50, an abap run time error happen like following
    Run time error message type x
    error analysis
    rror analysis
       Short text of error message:
       Error GENERAL_ERROR MESSAGES_ACTIVE_REQUIRED
       Long text of error message:
        Diagnosis
            The following program error or handling error has occurred.
            Error information:
            GENERAL_ERROR
            MESSAGES_ACTIVE_REQUIRED
        System Response
            Processing is terminated.
        Procedure
            If you cannot solve the problem yourself using the error
            information, note down this information and the entries which led
            to the error. Contact your system administrator for further
            assistance.
       Technical information about the message:
       Message class....... "K5"
       Number.............. 011
    please help

    Hi,
       Please apply note 1361352 and check if the issue is resolved
    regards
    Waman

  • EOIO,Maintain order at run time

    Hi,
      I've query about EOIO and Maintain order at runtime option
    under these 2 situations how PI will behave
    1. If 5 records are processing under 1 file and if 3 rd record fails then rest 4,5 records will process or not?
    2. If 5 files are processing and 3rd file  went into error then 4,5 files will process?
    for both above cases please suggest PI behaviour for processing next sequence of files.
    When files will not process and when files will process . Including EOIO,Maintain order at runtime options
    thanks,
    aman.

    >>>Ans:IF target sys is ERP then if 3rd record fails next msgs will not be process if all records scheduled to a single file and if EOIO, Maintain order at run time will not be opted . Else it will process.
    If all the records are part of a single message/transaction, then yes either all of them gets processed or the entire message fails irrespective of the EOIO check. (From PI perspective, if there is any connectivity issue/data quality etc..)
    >>>PI will not process rest of files even if we didnt opt EOIO,Maintainorder at runtime. Messages will be stuck in Q till the error message processed/cancelled.
    Not true.. As i said, if you enable EOIO then 4th and 5th messages will be hold in PI until you cancel 3rd message.
    If you don't enable EOIO then, only error message will be in PI.
    Remaining message 4 and 5 can still get processed successfully

  • Change the Value of column of the internal table at run time

    Hello Experts,
    With the below code i am able to determine the value hold
    by internal table at run time for a sepcific column but i am not getting the way
    of how to update the internal if one of the value is changed,
      lr_desc_table ?= cl_abap_typedescr=>describe_by_data( itab  ).
      lr_desc_struc ?= lr_desc_table->get_table_line_type( ).
    loop at itab assigning <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
         CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
          assign lv_excel_row to <fs_field>. "this is not changing the value actually hold in internal table
        endloop.
      endloop.

    Hi,
    Resolved this issue with the code mentioned below.
    Code:
    loop at lt_export_items assigning <fs_data>.
      ls_data = <fs_data>.
        loop at lr_desc_struc->components ASSIGNING <fs_comp_wa>.
          assign component  <fs_comp_wa>-name of structure <fs_data> to <fs_field>.
          lv_excel_row = <fs_field>.
          CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
            EXPORTING
              INTEXT  = lv_excel_row
            IMPORTING
              OUTTEXT = lv_excel_row.
              concatenate 'ls_data-' <fs_comp_wa>-name into  lv_var.
              assign (lv_var) to <fs_var>.
              <fs_var> = lv_excel_row.
        endloop.
        modify lt_export_items from ls_data .
        clear:ls_data.
      endloop.
    Take care,
    Sanju

  • Not checking the budget for internal order at the time Travel Request creat

    Hi All,
    I have two issues.
    (1) We activated travel managment in our system for public sector germany. In that case we need to create trip directly from PR05 instead of TRIP. I created budget for internal order but its not controlling and checking budget at the time of creation of the trip. We activated fund management also but i need control at internal order level. Please guide me.
    (2) While creating trip in PR05 what ever expenses mentioned in Trip it's committing and also i am able to see in fund management commitments report. We extracted reports based on COSP table. This commitment is not updating in this table. Please guide me which table is showing link between internal order and fund management account assignment objects.
    Regards,
    sree

    thanks for your reply.
    I maintained Budget profile and Tolerance limits. I am getting error only at the time of posting in PRRW.But i need to control at the time of saving the trip. I can use user exit to control. If there is any standard functionality of checking the budget at the time of saving then it should be good.
    For me main problem is i am not able to get report both trip commitments and fund management details. Please inform me in which table internal order and trip commitments are storing.
    Regards,
    Sree

  • Check marks or dynamic items for run-time shortcut menus

    Labview version: 8.0
    I'd like to create a run-time shortcut menu for my Xcontrol, that would
    allow user to toggle between two states of the control. Is it possible
    to either
    1) dynamically apply check marks to run-time shortcut menus or
    2) dynamically modify the run-time shortcut menu content
    Tomi
    Tomi Maila

    Hi Tomi,
    Great question.  Yes, you can do what you want with run-time shortcut menus in LabVIEW 8.0.  If you want to dynamically modify the menu content, you have to do it in the "Shortcut Menu Activation?" event in the facade VI of the XControl.  In the event data for this event is a parameter called "MenuRef" which works with the same menu primitives that have been around since LabVIEW 5 for editing the menu bar at run-time. 
    With these primitives, you can add/delete/modify menu items to the shortcut menu.  The items that are already in the MenuRef when this event case executes are always the ones that are statically defined, either by LabVIEW or by customizing them.  You do not have control over the state of the items that LabVIEW adds, but you can remove them and add ones with the same text (just with a different tag).  In your case, you would probably want to use the Insert Menu Item primitive to add an item such as "Toggle State".  Give it a tag such as "USER_TOGGLE_STATE".  Then you'll want to use the Set Menu Item Info primitive to set the checkmark for that item based on the state of the XControl.
    Then, you'll need to add an event case for the "Shortcut Menu Selection (User)" event so you can handle the item being selected.  Wire the Item Tag parameter from the event data to a case structure and add a case to look for "USER_TOGGLE_STATE".  And in that case, toggle the state of your XControl.  That's all you need to do!
    The Dual Mode Thermomter shipping example in <LabVIEW 8.0>\examples\general\xcontrols\Dual Mode Thermometer\Simple Dual Mode Thermometer XControl.lvproj is a simple example of how you can modify the menu and respond to the items selected.  It's a little different than what you want to do, but it might help you to look at it.
    Good luck!  Let me know if you have questions.
    Robbie

  • To change user status profile on sales order at run time.

    Hi Experts,
    We have defined status profile for Sales returns ( Doc type RE) which blocks the  return order on creation. There are two statuses here which are to remove the delivery block and to remove the billing block by authorised users.
    The requirement is now to have a three level block ( three statuses ) on the same document. We can create a new status profile and assign it to a new return sales order tpye  but we want to avoid creating new document types. Since this document type is used across various companies in the group we can not assign a new profile on the existing RE document as well.
    My question to all experts is
    Is it possible to dynamically change the status profile assigned to the document type based on characterstics like sales org or company code etc? If any body has done this please let me know the user exit , function module, BADI etc where the necessary coding has been done.
    Helpful answers will be rewarded with points.
    I look forward to your co operation.
    Regards,
    Kartik Shah

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Can i change tabIndex order in run time

    iam giving tabindex order. some swf file loading runtime than can i change tabIndex order. if possible how

    yes, you can use the tabIndex property of interactive objects:
    textfield1.tabIndex=1;
    movieclip1.tabIndex=2;
    button1.tabIndex=3;

  • Concurrent manager encountered an error while running sql*plus for your concurrent request create internal order

    Hi
    We have a big problem, We can't create internal orders, when I run the CREATE INTERNAL ORDER, it finish with ERROR:
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    this is the log:
    +---------------------------------------------------------------------------+
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    POCISO module: Create Internal Orders
    +---------------------------------------------------------------------------+
    Current system time is 26-JUL-2013 09:21:09
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Begin create internal sales order
    Updating Req Headers
    14 Reqs selected for processing
    Top of Fetch Loop
    Source Operating Unit: 82
    Selecting Currency Code
    Currency Code : MXP
    Selecting Order Type
    Order Type ID:1001
    Selecting Price List from Order Type
    Deliver To Location Id: 196
    Inserting Header : 3908784
    Getting the customer id
    Getting the customer id: 15334
    Unhandled Exception : ORA-01403: no data found
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    78
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 26-JUL-2013 09:21:14
    +---------------------------------------------------------------------------+
    Some suggestion for resolve it??
    Thanks & Regards.

    In the document 294932.1 Section 4 there are no pre-installation patches or update for OS RedHat LinuxAS4.
    When I type echo $LD_ASSUME_KERNEL it doesn't display any value so do I need to set the LD_Assume_Kernal value manually.
    If yes, please let me know the path and command to set the kernel value.
    Thanks
    Amith

  • Internal Order for AUC Asset not getting created Automatically

    As per SAP Standard , when I create an  AUC Internal Order (KO01), and save , AUC asset is gets created automatically ted via AS01 and stores the AUC Asset in Internal Order settlement rule. 
    However when tried with the client Im not able to create, AUC is not getting automatically created and stored in Int Order Settlement rule.
    In config I have added investment profile to Ord Type  and in OAOA ( AUC Asset class setting , Investment profile is also checked)
    Kindly let me have your inputs to fix the issue
    Advance Thanks
    Sanjai

    Hi,
    In order to create AUC asset automatically by the system, you need to create an investment profile in OITA.
    Then assign this investment profile in the Internal order master data created through KO01 in the Investments tab.
    There is no option of assigning the Investment profile in the Order type.
    And in OAOA that is Asset class, select the radio button investment measure.
    You can default the Asset class of AUC in the investment profile or leave it blank so that same can be filled when system prompts for AUC creation.
    You cant see the AUC asset in the settlement rule once Investment order is created, but only after settlement of the balances to the AUC u can see.
    Thanks & Regards,
    Ravi Kumar

  • Travel Commitment to Internal Order

    Hi! All,
    After saving a Purchase Order with Account Assignment to an Internal Order, commitment will update the COOI table. If Internal Order has budget exceeded, it will display an Availability Control Error Message.
    However, for a Travel Request with Account Assignment to an Internal Order(after approval of the request, before Transferred to FI), commitment will NOT UPDATE the COOI table. It does not display any Availability Control Error Message if budget exceeded. Travel Commitment does not update the Internal Order Available budget anymore.
    How to make Travel Request Commitment update the Available budget of the Internal Order and display an error message if budget exceeded ?
    Thanks in advance for the advise.

    Hi! Kenneth,
    The cost element is NOT exempted.
    If the trip is cost assigned to a Cost Centre, it will update the Travel commitment to the Funds Centre and got the budget exceeded error message if the Funds Centre is running out of money.
    However, if the trip is cost assigned to an Internal Order, the commitment does NOT update the availability of the Internal Order and NO error message if the Internal Order is running out of money.

  • User Exit  for ko01 ( Creation of Internal Order )

    Hi,
    My requirement is to validate the Business Area & Profit Center based on the Responsible Cost Center entered. EVEN if the Business Area & Profit Center are valid entries as per the data, they should be replaced by the Business Area, Profit Center with respective Responsible Cost Center entered by user. Please help me its urgent.
    Regards
    Vikram

    Hi
    The follwoing user exits and badis available:
                                                                                    Enhancement/ Business Add-in            Description                                                                               
    Enhancement                                                                               
    COOPA002                               
    Customer function for master data maint. - internal orders     
    COOPA003                               
    User-Defined Fields in the Order Master                        
    COOPA004                               
    Customer function: Print order master data                     
    COOPA_01                               
    Customer check modules for internal orders                                                                               
    Business Add-in                                                                               
    INTERNAL_ORDER_EXTND                
       Master Data Extension for Internal Order    
    If it is helpful rewards points.
    Regards
    Pratap.M

  • Internal order settlements

    Hi
    How do we exclude secondary costs posted in an internal order when running settlements ?
    Our problem is ,we are having both primary costs and secondary costs(secondary cost elements) sitting on internal ordrs.When we are running settlements we want to exclude secondary cost and run settlements only for primary costs.
    We have tried changing the source structure /allocation strcuture by excluding the secondary cost elements.But when we do that we get an error saying there are secondary costs existing in internal order and it is asking either to reverse the secondary costs from order or to include secondary cost elements on source/allocation structure.
    We don't want to reverse the seconday costs from Internal orders.The how to exclude seconday costs in settlements?
    hinfi

    Hi,
    In Internal Order we have two types
    1 Statistical Order : Here we have to update Oder No as well as Cost Center, but here settlement is not possible.
    2 Real Order : While Posting Document we have to Update Only Order No Dont mentioned any thing, if you mentioned any thing you will get error like this.
    Bye......

  • Reg : Archiving of Internal Order

    Hai Friends I am working on Archiving of Control Orders(Internal Orders) using KO02.
    Archiving can be done only when deletion flag is set for Internal Order.
    My issue is I want to set deletion flag for the Internal Order without going into the TCode KO02
    and setting deletion flag.
    Is there any other option for doing this.....

    unless i am very much mistaken, internal orders follow the same algorithms as service orders or production orders, so you can set the deletion mark/flag using the archiving preproc. tx. SARA -> CO_ORDER -> PREPROC -> create variant. check whether you have to set times of residence in the configuration of the order type.

Maybe you are looking for

  • Can Tiger (OSX 10.4) run on a Macbook Pro quad core i7

    I have a Macbook Pro 2.2 GHz quad core i7.  I would like to have three partitions one for OSX 10.6, one for OXS 10.4 to run some older software and one for Windows 7.   I have these  3 partitions setup and OSX 10.6 and Windows 7 installed and working

  • Acrobat 9 PRO - Forms Tracker Question

    1. When distributing a form via acrobat.com to multiple targets, can I keep email addresses confidential from individual members on the distribution list? 2. When distributing a form to multiple email addresses simultaneously, is it possible to creat

  • Archive Delete job taking too much time - STXH Sequential Read

    Hello, We have been running Archive sessions in our production system in last couple of months. We use SARA and selecting the appropriate variants for WRITE, DELETE and STORAGE options. Currently we use the Archive object FI_DOCUMNT and the write job

  • Playlist's not in the correct order

    I've always had a last played list of all the songs I've listened to recently. Ever since the new itunes update when I update my iPods (shuffle, nano and iphone 4S) they are in alphabetical order but in the smart playlist on my computer they are in t

  • Flash Project files (FLP)

    Hello. I can't seem to figure something out and was wondering if someone could explain this to me. I use a Flash Project (flp) for version control of my flash projects. One curious/strange thing seems to happen when I check in my files using the flp.