Controlling recipients when creating alerts via FM SALRT_CREATE_API

Hi all,
I have successfully managed to make a badi implementation which based on certain checks triggers and alert via FM SALRT_CREATE_API. I have a problem though limiting the users that receive the alert.
I want to control recipients via the import table called IT_RECIPIENTS. But I have a problem if any users are assigned as fixed recipients to the alert category used because then they always get alerts of this category whether or not they are part of IT_RECIPIENTS. In other words if a user has an entry in table salrtcatus for the alert category I am triggering via the FM then he/she gets all alerts of this category which does not make sense in my scenario.
I realize that a solution would be to make sure that no values exist in table salrtcatus. However, I would like to be able to use this table so that users can manually select per activity category if they at all are interested in receiving alerts of a particular category. And as far as I can see the table salrtcatus is the only place to store such information. The table can be maintained by each user if they go to theie worklist in the navigation bar and then click on "Personalize alerts". Then they can choose to sunscribe/unsubscribe to each alert category. How do I ensure that the subscriptions made here do not result in the users getting all alerts of a subscribed category but just the ones where they are purposely selected via import table IT_RECIPIENTS?
I hope you understand my problem
Br,
Anders

You can do it like this (it works for me):
1. in spro for actions define for your alert one additional parameter. In my example I trigger alerts via method call and I trigger method ZTRIGGER_ALERT (modification of standard TRIGGER_ALERT method in class CL_ACTION_EXECUTE).
So I defined new parameter, for example RECEPIENT for which I specified ABAP dict. data type CHAR4. Under Initial value you then specify the key for recepients group. For example RESP for employee responsible.
2. Then you have to do the following coding in ZTRIGGER_ALERT method. Below you have the sample for sending alert only to person belonging to employee responsible function. So in this way you can define as many recipient groups as you like.
data: recipient(4) type c.
READ TABLE lt_container INTO ls_container
       WITH KEY element = 'RECIPIENT'.
IF sy-subrc EQ 0.
    recipient = ls_container-value.
    clear ls_partner.
    refresh lt_recipients.
*determination of new recipient of alert
    loop at lt_partner into ls_partner.
*for RESPONSIBLE
      if ls_partner-partner_fct eq '00000014' and
        recipient eq 'RESP'.
        CALL FUNCTION 'CRM_CENTRALPERSON_GET'
          EXPORTING
            IV_BU_PARTNER_GUID        = ls_partner-bp_partner_guid
          IMPORTING
            EV_USERNAME               = ev_username
          EXCEPTIONS
            NO_CENTRAL_PERSON         = 1
            NO_BUSINESS_PARTNER       = 2
            NO_ID                     = 3
            OTHERS                    = 4.
        IF sy-subrc = 0.
         clear LS_RECIPIENTS.
         LS_RECIPIENTS-uname = ev_username.
         INSERT ls_recipients INTO TABLE lt_recipients.
        ENDIF.
      endif.

Similar Messages

  • Encounter error message 61062 when create PR via ME51

    Dear Consultant,
    I encountered error message 61062 - "dd.01.2011 date comes after end of valid factory calendar. (Pls correct)" when create PR via transaction ME51. Although I have changed the Delivery date to "31.12.2010", system still issue error message. FYI, material that I used to create PR has planned delivery time = 185 days (pre-configured by our purchaser via Purchasing info.record) which is equivalent to dd.01.2011. Our factory calendar is configured valid up to Year 2010 and the new year (2011) will only be configured at end of December.
    If using transaction ME51N to create PR for the mentioned material above (with delivery date entered as 31.12.2010), there is no error message being issued by the system. May I know is there any solution to transaction ME51?
    Pls advise asap.
    Thanks & regards,
    LOI

    >
    LOI wrote:
    > May I know if there Is any effect for other modules like PP/PM on changing plant calender to 2011?
    yes, a positive effect, you will not receive error messages because of missing calender anymore.
    I have my calendars maintained until 2015
    ME51N only takes an info record into account when you do source determination, without source determination, the planned delivery time from material master is taken.

  • Error when create user via OIM web

    Hi Gurus..
    I hava some problem when I creating new user via web OIM, error appear while inpute the start date value.
    Need help for you guys,
    This is the error code.
    <Error> <oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #5
    java.lang.NullPointerException
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.handleAccountEndDateValidation(UserManagerValidationUtils.java:237)
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.processDateValidations(UserManagerValidationUtils.java:589)
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.processDateValidation(UserManagerValidationUtils.java:543)
        at oracle.iam.identitytaskflow.common.components.UIInputDate$DateValueValueChangeListener.processValueChange(UIInputDate.java:135)
        at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:134)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:675)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:210)
        at org.apache.myfaces.trinidad.component.UIXSelectInput.broadcast(UIXSelectInput.java:216)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)

    probably yes but I am not so sure about that, I have checked the User.xml for make sure this but I can't found something wrong. any clue Shashank?
    Regards,
    -Rius-

  • Need help understanding the local caching of jnlp when creating it via jsp

    I'm trying to deploy an app via Web Start. I have occasions when I need to pass arguments, so I'm using JSP to create the JNLP and optionally write arguments.
    I need some help in figuring out how to cover my different use cases with as few different jnlps as possible and am confused about the local cacheing logic.
    Use 1
    Initial install: I pass an init=yes url param which writes a preferences file <argument> to be passed to my app. I don't want this argument cached in my jnlp, as this will overwrite the user's preferences on subsequent launches.
    Use 2
    Subsequent offline launches: no url params passed.
    Use 3
    Launch via html link (in a CMS): passes a file=<filename> url param which creates a file <argument> for my app to open. Again, I don't want this argument cached, otherwise launching from, say, the desktop shortcut will reopen this file.
    Can anyone explain how best to cover these three use cases?
    TIA!

    Did you solve this cache problem? I have a similar issue where I don't want it to use the arguments over again...

  • Errors encontered when creating asset via AS01

    Hi FICO Gurus,
    I am a new student in FICO, here i have a question as following, ask for help,
    When i tried to create a fixed asset via AS01, it reports error Entry XXXX does not exist in T093C. it seems we need a configuration in IMG. but no idea where should be configured. can someone tell me how to do?
    Any responses will be awarded.
    Thanks a lot!
    Samson

    Hi
    Assign the company code in Specify Number Assignment Across Company Codes
    Path for this is SPRO-> FINANCIAL ACCOUNTING->ASSET ACCOUNTING-> ORGANIZATIONAL STRUCTURES -> SPECIFY NUNBER ASSIGNMENT ACROSS COMPANY CODE.
    ASSIGN POINTS IF USEFUL AND MARK AS ANSWERED
    Regards

  • Error when creating Invoice via DI API

    Can you help me, I have a problem about DI
    When I create invoice with serial number and create transaction with 1 item in many serial number itu2019s no problem but
    If i create transaction with 2 diffrent item with many serial number has error the error code -5002([inv1.docentry][line:0],u2019item serial us not found in whseu2026.u2019)
    I using sap 2005 pl 40, I have debug my coding there is nothing wrong with it, than I suspec this is bug in DI is that rightu2026
    This is my code
      Dim oInvoices As SAPbobsCOM.Documents
            Dim iRetVal As Integer = -1
            Dim sErrMsg As String = ""
            Dim isAddHeader As Boolean = True
            Dim iRow As Integer = 0
            Dim sWhsCode As String = ""
            Dim iAddedQty As Integer
            Dim iCurrLine As Double = 0
            Dim iBasedDoc As Integer = 0
            Dim sNewDocNum As String = ""
            Dim sCardCode As String = ""
            Dim isdocnum As String = ""
            Dim CompleteOrder As DataRow
            Try
                oInvoices = myCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                For iRow = 0 To myOrderDetailsTable.Rows.Count - 1
                    Console.WriteLine(myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD))
                    If myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD) = 1 Then
                        Console.WriteLine(myOrderDetailsTable.Rows(iRow))
                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                        Console.WriteLine(sWhsCode & "   " & CompleteOrder(WHSCODE_FIELD))
                        sWhsCode = CompleteOrder(WHSCODE_FIELD)
                        With oInvoices
                            If isAddHeader Then
                                isdocnum = CompleteOrder(DOCNUM_FIELD)
                                iBasedDoc = CompleteOrder(DOCENTRY_FIELD)
                                sCardCode = CompleteOrder(CARDCODE_FIELD)
                                '.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
                                .Reference2 = CompleteOrder(DOCENTRY_FIELD)
                                .DocDate = Today.Date
                                .DocDueDate = Today.Date
                                .TaxDate = Today.Date
                                Console.WriteLine("cardcode : " & sCardCode)
                                .CardCode = sCardCode
                                Console.WriteLine("ibasedDoc :" & iBasedDoc)
                                .Reference1 = iBasedDoc
                                isAddHeader = False
                            ElseIf isAddHeader = False Then
                                ' .Lines.Delete()
                                .Lines.Add()
                            End If ' isAddHeader
                            iAddedQty = 0
                            iCurrLine = 0
                            Console.WriteLine("CompleteOrder(ITEMCODE_FIELD) : " & CompleteOrder(ITEMCODE_FIELD))
                            .Lines.ItemCode = CompleteOrder(ITEMCODE_FIELD)
                            Console.WriteLine(".Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD) : " & CompleteOrder(WHSCODE_FIELD))
                            .Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD)
                            Console.WriteLine("Lines.UnitPrice = CompleteOrder(PRICE_FIELD) " & CompleteOrder(PRICE_FIELD))
                            .Lines.UnitPrice = CompleteOrder(PRICE_FIELD)
                            Console.WriteLine("CompleteOrder(ISUSEBATCH_FIELD) : " & CompleteOrder(ISUSEBATCH_FIELD))
                            If CompleteOrder(ISUSEBATCH_FIELD) = 1 Then
                                For iCurrLine = 0 To CompleteOrder(QUANTITY_FIELD) - 1
                                    If iCurrLine > 0 Then .Lines.BatchNumbers.Add()
                                    .Lines.BatchNumbers.SetCurrentLine(iCurrLine)
                                    .Lines.BatchNumbers.Quantity = 1
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.BatchNumbers.BatchNumber = CompleteOrder(SCANNED_FIELD)
                                    '.Lines.BaseEntry = iBasedDoc
                                Next
                            ElseIf CompleteOrder(ISUSEBATCH_FIELD) = 0 Then
                                Console.WriteLine("CompleteOrder(WHSCODE_FIELD) :" & CompleteOrder(WHSCODE_FIELD))
                                While sWhsCode = CompleteOrder(WHSCODE_FIELD)
                                    If iCurrLine > 0 Then .Lines.SerialNumbers.Add()
                                    .Lines.SerialNumbers.SetCurrentLine(iCurrLine)
                                    Console.WriteLine("CompleteOrder(SYSSERIAL_FIELD)" & CompleteOrder(SYSSERIAL_FIELD))
                                    CompleteOrder(SYSSERIAL_FIELD) = IIf(IsDBNull(CompleteOrder(SYSSERIAL_FIELD)), 0, CompleteOrder(SYSSERIAL_FIELD))
                                    .Lines.SerialNumbers.SystemSerialNumber = CompleteOrder(SYSSERIAL_FIELD)
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.SerialNumbers.InternalSerialNumber = CompleteOrder(SCANNED_FIELD)
                                    ' .Lines.BaseEntry = iBasedDoc
                                    iCurrLine = iCurrLine + 1
                                    iRow = iRow + 1
                                    If iRow <= myOrderDetailsTable.Rows.Count - 1 Then
                                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                                    ElseIf iRow > myOrderDetailsTable.Rows.Count - 1 Then
                                        Exit While
                                    End If
                                End While
                                iRow = iRow - 1
                            End If
                            .Lines.Quantity = iCurrLine
                        End With ' oInvoices
                    End If ' CompleteOrder(ISSCANNED_FIELD) = 1
                Next iRow
                iRetVal = oInvoices.Add()
    thnx for your attention

    Hello tony,
    Please check the following:
    1.Make sure the item is managed by serials
    2.The serials number have been auto created in GRPO/AP invoice etc puchase document
    3.You need to set the system serial number for the lines. How do you know the system serial number of the serial number? refer to the Serial Number Details form
    Inventory=>Item management=>Serials Numbers=>Serial Number Details
    SystemSerialNumber Sets or returns the successive numerator starting from1 issued for each item with serial numbers management. This numerator progresses according to the creation of new units of the same sort (for the same item).
    This property is mandatory when using Serial Numbers for outgoing documents. Field name: SysSerial.This is a foreign key to the SerialNumbers object
    Sample code to add invoice with items managed by serials:
    Private Sub btnSerials_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSerials.Click
            ConnectViaDI()
            Dim oInvoice As SAPbobsCOM.Documents = Nothing
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oInvoice.CardCode = "C001"
            oInvoice.DocDueDate = Date.Now
            Dim oLines As SAPbobsCOM.Document_Lines = oInvoice.Lines
            oLines.ItemCode = "S00002"
            oLines.UnitPrice = 1500
            oLines.Quantity = 2
            oLines.TaxCode = "CA"
            'Set the system serial no. for the 1st item
            oLines.SerialNumbers.SystemSerialNumber = 3
            'Set the system serial no. for the 2nd item
            oLines.SerialNumbers.Add()
            oLines.SerialNumbers.SystemSerialNumber = 4
            lRetCode = oInvoice.Add
            If 0 <> lRetCode Then
                oCompany.GetLastError(lErrCode, errMsg)
                MsgBox(errMsg)
            Else
                MsgBox("AR Invoice with serials number added.")
            End If
        End Sub
    Kind Regards, yatsea

  • Problem in identifying control file when creating physical standby

    hi there,
    (database version: 10.2.0.4
    plateform linux)
    I'm using the command as below to create physical standby database from backup:
    rman target / auxiliary sys/tiger@paceview
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: PACEVIEW (DBID=2092349485)
    connected to auxiliary database: PACEVIEW (not mounted)
    run {
    allocate auxiliary channel c1 device type DISK;
    set until sequence 38;
    duplicate target database for standby dorecover nofilenamecheck;
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=35 devtype=DISK
    allocated channel: c2
    channel c2: sid=36 devtype=DISK
    executing command: SET until clause
    Starting Duplicate Db at 04-SEP-12
    contents of Memory Script:
       set until scn  138180211934;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 04-SEP-12
    channel c1: restoring control file
    ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is control file  (/backup/rman/paceview/DEL1_standby.ctl)
    ORA-19601: output file is control file  (/PGHProdDB/oradata/paceview/control1.ctl)
    failover to previous backup
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restorei have already tried crosscheck but still giving same error
    thanks

    Hello;
    So this is what I would do :
    Backup Primary ( change to your directory as need )
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }Move the backup and duplicate like this :
    rman target sys/password@PRIMARY auxiliary /
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }For complete details of this method see :
    http://www.visi.com/~mseberg/duprman2.html
    Best Regards
    mseberg

  • Package Error when create package via Methods onTables

    Even though I am an APEX developer for 3 years, I just found out about Methods on Tables Utility in SQL Workshop from Dan McGhan's demo. I tried to create a package for about 7 tables in one package. When the package was created, it was invalid. I tried to compile it and it produced several errors. I noticed that the UPDATE table procedure was incomplete as it did not provide parameters even though the procedure uses them.
    I was able to replicate it in APEX.ORACLE.COM.
    WORKSPACE: RGWORK
    PACKAGE: CSRSR_DML
    USER : TESTER
    Password: test123
    Is this a bug? Is there a workaround? Did anyone else experience similar outcome?
    APEX 4.1
    Oracle 10g Rel 2
    Robert
    http://apexjscss.blogspot.com

    sect55 wrote:
    Come on APEX team and gurus, please help....As far as this "guru" is concerned, it's not something I'd ever use:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:672724700346558185
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:25405782527721
    Given Tom's well-known opposition to this approach, I was more than a little surprised when this appeared in APEX as he also appears to have close links to the APEX team. I'd really rather have seen development effort invested elsewhere.
    I'd definitely advocate building applications based on PL/SQL APIs, just not on table-centric, row-by-row ones...
    I tried to create a package for about 7 tables in one package.Why?
    One of the main purposes of packages is to modularize an application. Sticking methods for all of the entities in one package defeats this and makes development, testing and maintenance harder. If you must use the flawed TAPI concept, create a separate API for each table&mdash;at most only combine those where there exist mandatory dependencies, e.g. an <tt>order</tt> package with methods for <tt>orders</tt> and <tt>order_items</tt>.
    As to the immediate problem, it appears to be due to the lack of primary key definitions on some of your tables. This means the generator is unable to identify which columns to use as unique row identifiers.

  • Add new fields to default view when creating fields via REST in sharepoint 2013

    Hello,
    When I add new fields via REST in a list, they don't appear in the default view for that list.
    Here is my code in case you need it:
    public function creeChamp(nomListe:String, champ:String, type:int, requis:Boolean):void
    postURL.data = JSON.stringify({ '__metadata': { 'type': 'SP.Field' }, 'Title': champ, 'FieldTypeKind': type,'Required': requis, 'EnforceUniqueValues': false,'StaticName': champ});
    thanks

    You need to add the field to the view as well.
    Here is the API.
    Our code looks pretty different because I'm working in AngularJS, but here's a snippet from a working example:
    $http.post(siteUrl + "/_api/web/lists/GetByTitle('" + listName +
    "')/Views/GetByTitle('All%20Items')/ViewFields/addViewField('" + columnName + "')",
    // POST data is empty for this request
    }, getPostConfig())
    .then(function (response) {
    deferred.resolve("Added column to view");
    .catch(function (response) {
    deferred.reject('Error ' + response.status + ': ' + response.data.error.message.value)
    Bottom line is you just POST to this URL however you normally do - except no data:
    "/_api/web/lists/GetByTitle('" + listName + "')/Views/GetByTitle('All%20Items')/ViewFields/addViewField('" + columnName + "')",
    Hope this helps!
    - Bob

  • Error when creating Alert on PER_PERIODS_OF_SERVICE table (error:DRG-10502)

    R12.1.3
    I have create an alert on PER_PERIODS_OF_SERVICE table (after insert, after update).
    After Terminating an employee, ALert Manager is attempting to run the DQM Serial Sync Index Program and am receiving the
    following error:
    DRG-10502: index AR.HZ_STAGE_PARTY_SITES_T1 does not exist
    Error syncing hz_stage_contact_t1 :ORA-20000: Oracle Text error:
    DRG-10502: index AR.HZ_STAGE_CONTACT_T1 does not exist
    Error syncing hz_stage_cpt_t1 :ORA-20000: Oracle Text error:
    DRG-10502: index AR.HZ_STAGE_CPT_T1 does not exist
    Error syncing hz_stage_parties_t1 :ORA-20000: Oracle Text error:
    DRG-10502: index AR.HZ_STAGE_PARTIES_T1 does not exist
    Any idea?

    Not sure what is going on there, but I can tell you those indexes don't exist in our database either!
    Is the alert you're using a custom one built by you, or is it a standard one? If it's the later I would be inclined to raise an SR.

  • Creating Routings via LSMW

    Hi all,
    Can anyone give me some pointers when creating Routings via LSMW. I see there are two standard uploads in RCPTRA01 and RCPTRA02. However, the mapping structures seem to be different between the two.
    I need to add PRT's material assignments and long texts to the routing.
    Any help greatly appreciated.

    Hi,
    Use standard batch/Direct input : RCPTRA02
    Source Fields
            MATERIAL_ROUTING          Material
                PLNAL                          C(002)    Group Counter
                MATNR                          C(018)    Article Number
                WERKS                          C(004)    Site
                OPERATION_ROUTING         Operations
                    PLNAL                          C(002)    Group Counter
                    VORNR                          C(004)    Operation/Activity Number
                    STEUS                          C(004)    Control Key
                    ARBPL                          C(008)    Work center
                    WERKS                          C(004)    Site
                    LTXA1                          C(040)    Operation short text
                    MEINH                          C(003)    Quantity unit for operation (batch input)
                    BMSCH                          C(017)    Base quantity (Batch input)
                    LAR02                          C(006)    Activity Type
                    VGE02                          C(003)    Unit for the standard value (batch input)
                    VGW02                          C(011)    Standard Value (Batch Input)
                    LAR03                          C(006)    Activity Type
                    VGE03                          C(003)    Unit for the standard value (batch input)
                    VGW03                          C(011)    Standard Value (Batch Input)
                COMPONENT_ROUTING         Components
                    PLNAL                          C(002)    Group Counter
                    VORNR                          C(004)    Operation/Activity Number
                    POSNR                          C(004)    BOM Item Number
                    MATNR                          C(018)    Article Number
                    WERKS                          C(004)    Site
    Field Mapping and Rule
           RC271_DS                       Work center structure for direct input (for datasets)
               Fields
                   TCODE                        Transaction Code
                                       Rule :   Constant
                                       Code:    RC271_DS-TCODE = 'CA01'.
                   STTAG                        Character Field Length = 10
                                       Rule :   Constant
                                       Code:    RC271_DS-STTAG = '18.03.2014'.
                   AENNR                        Change Number
                   REVLV                        Revision Level
                   WERKS                        Site
                                       Rule :   Transfer (MOVE)
                                       Code:    RC271_DS-WERKS = MATERIAL_ROUTING-WERKS.
                   PROFIDNETZ                   Profile
                   PLNNR                        Key for Task List Group
                   PLNAL                        Group Counter
                                       Rule :   Transfer (MOVE)
                                       Code:    RC271_DS-PLNAL = MATERIAL_ROUTING-PLNAL.
                   STATU                        Status
                                       Rule :   Constant
                                       Code:    RC271_DS-STATU = '4'.
                   VAGRP                        Responsible Planner Group/Department
                                       Rule :   Constant
                                       Code:    RC271_DS-VAGRP = 'KD1'.
                   VBELN                        Sales Document
                   POSNR                        Character field of length 6
                   PSPNR                        Work Breakdown Structure Element (WBS Element)
    MAPL_DI_DS                     Assign routing to article for direct input (for datasets)
        Fields
            ACTTYP                       Processing type for objects to be imported
                                Code:    MAPL_DI_DS-ACTTYP = 'H'.
            MATNR                        Article Number
                                Rule :   Transfer (MOVE)
                                Code:    MAPL_DI_DS-MATNR = MATERIAL_ROUTING-MATNR.
            WERKS                        Site
                                Rule :   Transfer (MOVE)
                                Code:    MAPL_DI_DS-WERKS = MATERIAL_ROUTING-WERKS.
            PLNAL                        Group Counter
                                Rule :   Transfer (MOVE)
                                Code:    MAPL_DI_DS-PLNAL = MATERIAL_ROUTING-PLNAL.
            LIFNR                        Vendor Account Number
            KUNR                         Account Number of Customer
            SUCHFELD                     Search Field for Customer-Specific Task List Selection
            VBELN                        Sales Document
            POSNR                        Sales Document Line Item (Batch Input Field)
            PSPNR                        Work Breakdown Structure Element (WBS Element)
    PLKO_DI_DS                     Header structure for direct input (for datasets)
        Fields
            ACTTYP                       Processing type for objects to be imported
                                Code:    PLKO_DI_DS-ACTTYP = 'H'.
            PLNAL                        Group Counter
                                Rule :   Transfer (MOVE)
                                Code:    PLKO_DI_DS-PLNAL = MATERIAL_ROUTING-PLNAL.
            VERWE                        Use by user or system
                                Rule :   Constant
                                Code:    PLKO_DI_DS-VERWE = '1'.
            WERKS                        Site
                                Rule :   Transfer (MOVE)
                                Code:    PLKO_DI_DS-WERKS = MATERIAL_ROUTING-WERKS.
            STATU                        Status
                                Rule :   Constant
                                Code:    PLKO_DI_DS-STATU = '4'.
            PLNME                        Unit of measure for the task list (batch input)
                                Rule :   Constant
                                Code:    PLKO_DI_DS-PLNME = 'KG'.
            LOSVN                        From lot size (BTCI)
                                Rule :   Constant
                                Code:    PLKO_DI_DS-LOSVN = '0'.
            LOSBS                        To lot size (BTCI)
                                Rule :   Constant
                                Code:    PLKO_DI_DS-LOSBS = '999999999'.
            VAGRP                        Responsible planner group/department
                                Rule :   Constant
                                Code:    PLKO_DI_DS-VAGRP = 'KD1'.
            KTEXT                        Task list description
                                Rule :   Constant
                                Code:    PLKO_DI_DS-KTEXT = 'Article Routing'.
            TXTSP                        Single-Character Indicator
    PLPO_DI_DS                     Routing/item structure for direct input (for datasets)
        Fields
            ACTTYP                       Processing type for objects to be imported
                                Code:    PLPO_DI_DS-ACTTYP = 'H'.
            PLNAL                        Group Counter
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-PLNAL = OPERATION_ROUTING-PLNAL.
            PLNFL                        Sequence
                                Rule :   Constant
                                Code:    PLPO_DI_DS-PLNFL = '000000'.
            VORKN                        Node number (batch input)
            VORNR                        Operation/Activity Number
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-VORNR = OPERATION_ROUTING-VORNR.
            UVOKN                        Node number (batch input)
            UVORN                        Suboperation
            STEUS                        Control key
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-STEUS = OPERATION_ROUTING-STEUS.
            ARBID                        Object ID (batch input)
            OBJTY                        Object types of the CIM resource
            ARBPL                        Work center
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-ARBPL = OPERATION_ROUTING-ARBPL.
            WERKS                        Site
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-WERKS = OPERATION_ROUTING-WERKS.
            KTSCH                        Standard text key
            LTXA1                        Operation short text
                                Rule :   Transfer (MOVE)
                                Code:    PLPO_DI_DS-LTXA1 = OPERATION_ROUTING-LTXA1.
    MEINH                        Quantity unit for operation (batch input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-MEINH = OPERATION_ROUTING-MEINH.
    UMREN                        Denominator for conversion from unit to base unit (BTCI)
                        Rule :   Constant
                        Code:    PLPO_DI_DS-UMREN = '1'.
    UMREZ                        Numerator for converting from unit to base unit (BTCI)
                        Rule :   Constant
                        Code:    PLPO_DI_DS-UMREZ = '1'.
    BMSCH                        Base quantity (Batch input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-BMSCH = OPERATION_ROUTING-BMSCH.
    ZMERH                        Break time (batch input)
    ZEIER                        Unit for break time (batch input)
    LAR01                        Activity Type
    VGE01                        Unit for the standard value (batch input)
    VGW01                        Standard Value (Batch Input)
    LAR02                        Activity Type
    VGE02                        Unit for the standard value (batch input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-VGE02 = OPERATION_ROUTING-VGE02.
    VGW02                        Standard Value (Batch Input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-VGW02 = OPERATION_ROUTING-VGW02.
    LAR03                        Activity Type
    VGE03                        Unit for the standard value (batch input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-VGE03 = OPERATION_ROUTING-VGE03.
    VGW03                        Standard Value (Batch Input)
                        Rule :   Transfer (MOVE)
                        Code:    PLPO_DI_DS-VGW03 = OPERATION_ROUTING-VGW03.
    PLMZ_DI_DS                     Article component allocation for direct input(for datasets)
        Fields
            ACTTYP                       Processing type for objects to be imported
                                Rule :   Constant
                                Code:    PLMZ_DI_DS-ACTTYP = 'H'.
            PLNAL                        Group Counter
                                Rule :   Transfer (MOVE)
                                Code:    PLMZ_DI_DS-PLNAL = COMPONENT_ROUTING-PLNAL.
            PLNFL                        Sequence
                                Rule :   Constant
                                Code:    PLMZ_DI_DS-PLNFL = '000000'.
            PLNKN                        Node number (batch input)
            VORNR                        Operation/Activity Number
                                Rule :   Transfer (MOVE)
                                Code:    PLMZ_DI_DS-VORNR = COMPONENT_ROUTING-VORNR.
            STLTY                        BOM category
                                Rule :   Constant
                                Code:    PLMZ_DI_DS-STLTY = 'M'.
            STLNR                        Bill of material
                                Rule :   Constant
                                Code:    PLMZ_DI_DS-STLNR = '00000005'.
            STLAL                        Alternative BOM
                                Rule :   Constant
                                Code:    PLMZ_DI_DS-STLAL = '01'.
            STLKN                        Node number (batch input)
            POSNR                        BOM Item Number
                                Rule :   Transfer (MOVE)
                                Code:    PLMZ_DI_DS-POSNR = COMPONENT_ROUTING-POSNR.
    WERKS                        Site
                        Rule :   Transfer (MOVE)
                        Code:    PLMZ_DI_DS-WERKS = COMPONENT_ROUTING-WERKS.
    BOMAT                        Article Number
                        Rule :   Transfer (MOVE)
                        Code:    PLMZ_DI_DS-BOMAT = COMPONENT_ROUTING-MATNR.
    STLST                        Order level
    STLWG                        Order path
    STLTY_W                      BOM category
                        Rule :   Constant
                        Code:    PLMZ_DI_DS-STLTY_W = 'M'.
    STLNR_W                      Bill of material
                        Rule :   Constant
                        Code:    PLMZ_DI_DS-STLNR_W = '00000005'.
    STLAL_W                      Alternative BOM
                        Rule :   Constant
                        Code:    PLMZ_DI_DS-STLAL_W = '01'.
    Map the extra fields according to your requirement. Hope you'll find the code helpful.

  • Config settings to gray out "Reqted Qty" field while creating TO via LT03

    Hi Experts,
           Could anyone please me in this. I would like to gray out "Requested Quantity" field when creating TO via LT03 transaction. Can anyone please let me know where the config setting needs to be maintained inorder to gray out the "Requested Quantity" in LT03 transaction.
    Thanks for your help.
    Regards,
    Nagarjun

    Hi,
    no there is not such a functionality.
    From a field settings perspective you may work at account group level, =>OBD2 or OVT0
    and/or at transaction type level => OB20
    With OB20 you can distinguish between creation and change.
    You may also react per authorisation. See F_KNA1_EAN. In that case you may gray out fields individually.
    BR
    Alain

  • Index allocation is missing when creating new index

    Hi,
    By trying to move away from TOAD I have installed SQL Developer (.
    Now, I noticed, that there is no way to define tablespace allocation for index when creating it via SQL Developer. Is this correct?
    Thanks
    OS: Windows XP
    Oracle: 10g R2
    SQL Developer: 1.1.0.23

    You're right. Also editing an existing index, the dialog doesn't display the current values, it just defaults out.
    K.

  • When creating po, pop up error message 'address doesn't exist'.

    when creating po via me21n, when click delivery tab screen, pop up error message dialog box 'address doesn't exist T001 wsu20 00010'. message no is 'am010'. then i was forced to  exit transaction.
    ps: 'su20' is my plant, but in me21n, when selecting plant, i can see two 'su20', the diffrence is  International address version. why there is two same plant

    go into customizing and maintain an adress by clicking the envelope button in the detail to the plant. The adress in the customizing views itself is not sufficient.

  • Interact SNP: inserting a loc receiving calendar ctrl when creating order ?

    Hi all,
    When I manually create an order (planned distribution receipt) in a weekly bucket, the order is automatically created and fixed on Thursday 12:00:00 PM of the week. This is due to the period factor in the transportation lane's mode of transport that is set to 0,5 (thanks Srinivas for the info !     ) and it's perfectly normal.
    The problem is that no location receiving calendar control is made before creating the order : so even if Thursday is a non working day in the receiving calendar, the order is still created on that date, and fixed.
    Important : when I unfix the order, and then press enter, the date is recalculated taking into account the receiving calendar this time, and placing the order on an open day.  --> this significate that automatic receiving calendar control is possible in interactive SNP order creation.
    I tried to debug but I still can't find the moment when the system does the control...
    I'd want to insert an automatic calendar control directly when creating the order, but I didn't find any BADI or user exit that would allow me to insert the control at the right time...
    <b>Could someone help me to find an entry to insert that kind of control please ?</b>
    <i>By the way I'll create an OSS message about that point cause I don't consider this as a normal functioning...
    If anybody is interested in SAP response plz let me know.</i>
    Thanks for any help that could be brought... I reward points of course !
    Fabrice

    Coding User Exit macros will require some development help. You may need to get started from the help website
    http://help.sap.com/saphelp_scm41/helpdata/en/17/a5216b32a111d398260000e8a49608/frameset.htm
    Please research in the SAP-APO forum itself on user-exit macros.
    You are right in assuming that it can help you code many logics that may not be defined in standard user exit macros.

Maybe you are looking for

  • Help me about the ipod battery

    Did the battery test as apple said to, but i only got about 8 hours out of it and ive only had it for about 1/2 months! Is this normal? Or is my ipod faulty in some way? Paul

  • Safari won't load my university online service

    I can't reach the login page for my university's online service (http://my.shu.ac.uk). IT services are saying that Safari is blocking access to certain websites. I don't want to use Firefox so I was wondering what I can do to either sort the problem

  • Using avchd clips from a canon cam - finally figured it out

    hello happy forumers, a few weeks ago I posted looking for help in getting premiere pro to recognize the correct frame rate of the clips I imported from my canon vixia HF11 avchd cam. the problem was: the 24 fps clips were listed as 29.97 in the proj

  • Help: Installing 8i Enterprise Edition

    I am new to installing Oracle myself and I am in the process of doing that now, and I am facing problems. I really need someone to act as my mentor, so I can direct my questions to them. If anyone is willing to help please let me know via e-mail. I p

  • To Learn Detail of Error Message

    Hi All; We have an executable that i can not debug or reach code, somehow a blackbox. When i execute it, i only get 942 error as i simulated below: SQL> SELECT * FROM no_existed_or_granted_table; SELECT * FROM no_existed_or_granted_table ORA-00942: t