EMIGALL, DEVINFOREC - probs with reg.codes/factors for multiple registers

Hi, guys!
I have a problem with the migration object DEVINFOREC in EMIGALL. When I try to create a device info record with two registers, I don't get the fields register code (field KENNZIFF in structure DVMREG) and register factor (ZWFAKT in structure DVMREG) updated for the second register!!! The first register is OK, but for the second one, "nothing happens".
I'm using the flags KENNZIFF and ZWFAKT in structure  DVMRFL. The problem I have here is, that it seems that only ONE entry of the DVMRFL record is allowed and therefor I can only update the first register (I think!!!).
When I tried to create an extra DVMRFL record with register number 002, I get an error saying:
Data error in automation data of device modification
Message no. EN262
Diagnosis
An error occurred in table reg_flag for automation data. The following lines are unpermissible.
Date 01.01.2001  - 31.12.9999
Equipment (device) DEV_0001
Register 002
This is the input file to EMIGALL for DEVINFOREC:
900000000012345682     DVMINT     01     E02     DEV_0001
900000000012345682     DVMDEV     DEV_0001     4416     E02
900000000012345682     DVMDFL     DEV_0001     E02
900000000012345682     DVMREG     DEV_0001     E02     001     E10     10,00000                    
900000000012345682     DVMREG     DEV_0001     E02     002     E11     10,00000                    
900000000012345682     DVMRFL     DEV_0001     E02     001
900000000012345682     &ENDE
In the file above I would like to create a device info record called DEV_0001 with two registers with register factor 10 and with register codes E10 for register 1 and E11 for register 2.
When I look at the device info record in trx EG43, I can see that  only the first register is updated correctly. For the second register the register factor is 1 and the register code is empty.
Suggestions, anyone?
Thanx in advance!
With regards,
Tony
Edited by: TonyN64 on Apr 27, 2011 9:45 AM

Hi Tony,
Migration was ok for this object (DEVINFOREC).
Maybe this will help you (customer structure of DEVINFOREC object):
We suppose that material(MATNR) generic used for creation of device inforecords is called 'DEVINFOREC'.
DataType:     DVMINT                                                                               
Fld                       CTyp  DTyp   DLen    To      Short descriptn.                                         
KEYDATE                   3     DATS        8          Key Date for Selection According to Time-Related Validity
SPARTE                    2     CHAR        2          Division                           --- constant: 02 -gas                      
MATNR                     2     CHAR       18          Material Number             --- constant: DEVINFOREC for example                             
GERAET                    3     CHAR       18          Device                                                   
DataType:     DVMDEV                                                                         
Fld                       CTyp  DTyp   DLen    To      Short descriptn.                                                                               
BIS                       3     DATS        8          Date at Which a Time Slice Expires    
AB                        3     DATS        8          Date from which time slice is valid   
GERAET                    3     CHAR       18          Device                                
MATNR                     2     CHAR       18          Device category                        --- constant: DEVINFOREC for ex                             
EGERR_INFO                3     CHAR       30          Information Field of Device Info Record
DataType:     DVMDFL                                                                     
Fld                       CTyp  DTyp   DLen    To      Short descriptn.                                                                               
BIS                       3     DATS        8          Date at Which a Time Slice Expires
AB                        3     DATS        8          Date from which time slice is valid
GERAET                    3     CHAR       18          Device                            
MATNR                     2     CHAR       18          Device category                    --- constant: DEVINFOREC for ex                             
EGERR_INFO                3     CHAR        1          Indicators                        
DataType:     DVMREG                                                                     
Fld                       CTyp  DTyp   DLen    To      Short descriptn.                                                                               
GERAET                    3     CHAR       18          Device                            
MATNR                     2     CHAR       18          Material Number            --- constant: DEVINFOREC for ex       
ZWNUMMER                  3     NUMC        3          Register                          
BIS                       3     DATS        8          Date at Which a Time Slice Expires
AB                        3     DATS        8          Date from which time slice is valid
CALOR_AREA                3     CHAR        8          Calorific value district          
DataType:     DVMRFL                                                                     
Fld                       CTyp  DTyp   DLen    To      Short descriptn.                                                                               
BIS                       3     DATS        8          Date at Which a Time Slice Expires
AB                        3     DATS        8          Date from which time slice is valid
GERAET                    3     CHAR       18          Device                            
MATNR                     2     CHAR       18          Device category         --- constant: DEVINFOREC for ex                   
ZWNUMMER                  3     NUMC        3          Register                          
CALOR_AREA                3     CHAR        1          Indicators                        
Bellow is a sample of 3 records from a file which was imported:
K10073     DVMINT     20080101     K10073
K10073     DVMDEV     99991231     20080101     K10073     BL. B1 SC.2
K10073     DVMDFL     99991231     20080101     K10073     BL. B1 SC.2
K10073     DVMREG     K10073     001     99991231     20080101
K10073     DVMREG     K10073     002     99991231     20080101
K10073     DVMRFL     99991231     20080101     K10073     001
K10073     DVMRFL     99991231     20080101     K10073     002
K10073     &ENDE
K10074     DVMINT     20080101     K10074
K10074     DVMDEV     99991231     20080101     K10074     BL. B1 SC.3
K10074     DVMDFL     99991231     20080101     K10074     BL. B1 SC.3
K10074     DVMREG     K10074     001     99991231     20080101
K10074     DVMREG     K10074     002     99991231     20080101
K10074     DVMRFL     99991231     20080101     K10074     001
K10074     DVMRFL     99991231     20080101     K10074     002
K10074     &ENDE
K10075     DVMINT     20080101     K10075
K10075     DVMDEV     99991231     20080101     K10075     BL. B1 SC.4
K10075     DVMDFL     99991231     20080101     K10075     BL. B1 SC.4
K10075     DVMREG     K10075     001     99991231     20080101
K10075     DVMREG     K10075     002     99991231     20080101
K10075     DVMRFL     99991231     20080101     K10075     001
K10075     DVMRFL     99991231     20080101     K10075     002
K10075     &ENDE
Service module for DEVINFOREC object is: ISU_S_SMALL_DEVICE_CREATE
with following parameters:
Export
X_DEVICE     EMG_DEVMOD_INT-GERAET
X_MATNR     EMG_DEVMOD_INT-MATNR
X_DEVISION     
X_KEYDATE     EMG_DEVMOD_INT-KEYDATE
X_UPD_ONLINE     U_ONLINE
X_NO_DIALOG     N_DIALOG
X_AUTO     AUTO
X_OBJ     
X_INT_NUM     
X_EXT_NUM     
Import
Y_DB_UPDATE     DB_UPDATE
Y_EXIT_TYPE     
Y_EQUNR     EGERR-EQUNR
Y_DEVICE     
Good luck,
Catalin

Similar Messages

  • Reg:Single Check for Multiple Vendors

    Hi Experts,
    I want to Issue a Single check for all vendor open items...
    For this is I created one Group Key and assigned in the vendor master record, but while doing the payment separate check issuing for each vendor,
    any idea

    Hi,
    Can you check the below thread of urs.
    [Reg:Single Check for Multiple Vendors]
    In addition to the above, please make sure that in OBVU, the check box separate payment for each ref is deselected for your questioned comapny code.
    You would have continued your earlier thread instead, rather than a new thread.
    Thanks,
    Srinu

  • Transport fails with return code 12 for 0CHANOTASSIGNED Characteristics

    Dear Experts,
    I am transporting the 0CHANOTASSIGNED characteristics from BI Dev to BI QA.
    In BI Dev, I use the option Necessary Object.
    While importing request into BI QA, it fails with a return code 12. Some of the errors are:
    Start of the after-import method RS_IOBJ_AFTER_IMPORT for object type(s) IOBJ (Activation Mode)
    System error in lock management
    Error AD 025 during after import handling of objects with type(s) IOBJ
    Start of the after-import method RS_IOBC_AFTER_IMPORT for object type(s) IOBC (Activation Mode)
    Error when checking the InfoObjectCatalog 0CHANOTASSIGNED
    InfoObject 0ABCINDIC is not available in active version
    InfoObject 0ABCPRC_TYP is not available in active version
    InfoObject 0ABCPROCESS is not available in active version
    InfoObject 0ACCT_TYPE is not available in active version
    InfoObject 0ACTIONREAS is not available in active version
    This goes on for lot of infoobjects. If I were to goto RSA1 of BI QA and check any of the above objects, they are 'INACTIVE'.
    But they are 'ACTIVE' in BI Dev.
    Please help me in resolving this issue.
    Thanks and BR,
    Raj Jain

    Hi I.R.K,
    I recreated a trasnport for just one Infoobject (0ABCINDIC) which was one of the objects not active as shown in the logs of BI QA while transport.
    I did not make any changes or delete any data etc. I then just transported these request from BI Dev to BI QA.
    The transport was successful with return code 0. I then checked this object in RSD1 of BI QA and it was activated.
    Any ideas what may be the cause???
    Thanks,
    Raj Jain

  • Transport error failure with return code 12 for BIA indexed Cube

    Hello,
    I was trying to transport few cubes from the Dev to the QA system. However, the transport failed repeatedly with return code 12. I noticed that the version of Cubes in the target system had BIA indexes loaded on it.   So, I deleted those indexes and re-transported the cubes.To my surprise, the transport went fine without the BIA indexes. This now opens up a new avenue for discussion of dropping and recreating BIA indexes for those cubes that needs to be transported.
    Any thoughts on this new aspect before. Has anyone faced similar problems. I want to know your experiences before we can take this issue to SAP.
    Thanks,
    Rishi

    Rishi/Vitaly/Marc,
    How do you transport cubes with BIA indexes.
    Do you drop/recreate the BIA index before the transport.
    In my case, the transport kicked off adjustment job exactly as described in [Note 1012008|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1012008]
    Indexes looks fine once this jobs completes successfully. The transport does not fail.
    Is this approach fine.
    I see that most of the customers drop/recreate indexes before transporting cubes.
    Can I run into data consistency issues with this approach?
    Input required.
    Thanks,
    Saurabh

  • Result Analysis with transaction code KKAJ for Top level WBS element

    Hi Experts,
    we have four level WBS structure with level 1 and level 4 with all operative indicators active
    when we are doing Result analysis by using KKAJ for level 1 WBS element, System is taking all level 4 wbs elements also into consideration.
    Is there a way to run results analysis using KKAJ only for level 1 wbs elements for multiple projects, avoiding the level 4 WBS elements.
    SAP version 4.6C
    Please suggest.
    Thanks in advance
    Chakravarthy

    Hi
    refer this thread posted a few days back
    Ajay M

  • Return Code - Query for Multiple Rows as XML

    Hi,
    I'm executing an MSSQL stored procedure through the "Query for Multiple Rows as XML" activity in LiveCycle ES. I do this through a call statement such as this:
    { call MyStoredProc(?) }
    This works great, the stored procedure always returns a record set (with or without records). I use this activity rather than "Call Stored Procedure" because I can transform the record set into XML right away within this activity. Unfortunately any exception arising from invoking this stored procedure cannot be handled within the workflow as this activity does not have an exception handler (lightning bolt). In an attempt to handle at least some exceptions we have decided to use try/catches within the stored procedures and return different error codes. Now the problem I am faced with is that there is no way to retrieve the returned code within any of the SQL activities. We don't want to have to write an execute script for each of these SQL calls. Is there any way to do this? Seems like I'm 95% there.
    Thanks
    Nic

    Thanks for the offer, unfortunately we would need something certified by Adobe.
    Nic

  • Need help with EVENT BOOKING: option for multiple, payment (pay pal standard or pro only) add cost, etc

    Hello!
    I'm at my wits end: please help! It seems straight forward, and I sold my client on BC thinking this was doable in the events module, but it seems maybe not so without a ton of custom coding.
    1. Book an event online,
    with option for multiple (say 1-5 people at a fixed cost per person),
    and checkout using only Pay Pal (standard or pro, doesn't matter, but I think Standard won't work without shopping cart).
    2. The events are every day but Sunday all year long (just admission to an attraction), so is there a way to upload months in advance so they don't have to be manually entered?
    I'm so grateful for any assistance.

    This is all very achievable:
    • Events you can add multiple people to book.
    • PayPal you use use our APP that's in the BC Appstore (Liam to confirm is works with bookings)
    I'm sales and marketing at Pretty, so I'm not the person to advise on how all this fits together. But I'm sure Liam can point you in the right direction.
    If you need some consulting or us to do it for you just let me know [email protected]
    Brett
    www.prettydigital.com.au

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Help with structuring SQL databases for multiple photo galleries..help!?!

    Hello all,
    As a new PHP/SQL developer I have found great technical assistance from both this forum and from David Powers and his wonderful books. I am at a crucial point in my web development and although I believe I know which direction I need to go, I am still uncertain and so I appeal to you all for your help, especially David Powers.
    The website I am building is one which will house many photo galleries. I was able to successfully modify the code provided in David Powers’ book ‘php Solutions’ so that I got the photo galleries constructed and working in the manner I desired.
    That being said, a person browsing my website will be presented with a link to see the photo galleries. There will be five (5) categories in which the photos will be separated, all based on specific styles. Now that I have the galleries working, I need to know how to structure things so that I can create a page, like a TOC (table o’ contents) that shows all photo galleries by displaying a thumbnail image or two along with the description. Perhaps I’ll limit the TOC page to only show the latest 25 galleries, arranged with the most current always on top.
    The way I have my galleries set up, I have a separate database for each one, containing the photo filenames and other relevant data. To build my TOC structure, should I have an overall database that contains each gallery database filename along with category? This is where I have no idea what I’m doing so if my question sounds vague, please understand I have no other idea how to ask.
    The site will grow to the point of having hundreds, if not thousands of photo galleries. I simply want to know how to (organize them) or otherwise allow me to build a method to display them in a TOC page or pages.
    I know this is a bit dodgy, but with some info and questions back from you, I feel confident that I should be able to get my point across.
    Lastly, I am still developing this site locally, so I have no links to provide (though I feel that shouldn’t be necessary right now).
    Many sincere thanks to you all in advance,
    wordman

    bregent,
    I'm chewing this over in my head, reading up on DB's in 'phpSolutions' and I think that things are slowly materializing.
    Here is the structure of the website that I have planned:
    MAIN PAGE
    User is presented with a link on the main page to select photo galleries (other links are also present). Clicking the link takes them to the Category Page.
    CATEGORY PAGE
    On this page, the User will then have 5 choices based on categories (photo style). CLicking any of these 5 links will take them to respective TOC pages.
    TOC PAGE
    On this page, the user is greeted with a vertical list of galleries or photosets; one to three thumbs on the left, a small block of descriptive text on the right (ideally containing date/time info to show how recent the gallery is). Newest galleries appear at the top. Eventually, when there are tens or hundreds of galleries in any given catrgory, I'll need to adopt a method for breaking up the qualntity in groups (we can pick 20 for example) that can be scrolled through using a small navbar. This will keep the TOC Pages from getting endlessly long and avoid endless scrolling. User selects a gallery on this page to view.
    THUMBNAIL PAGE
    On choosing a gallery, a thumbnail page is generated (I have this working already)
    IMAGE PAGE
    On selecting any thumbnail in the grid, the user is taken to the full-sized photo with a navbar and photo counter at the top. Navlinks allow forward and back, a link to the first image, a link to the last image and one link back to the thumbnail page. (I have this working already).
    I provide this info in an effort to help understand the basic structure of my site. The description above is as close to a step-by-step illustration as possible.
    Thank you!
    Sincerely,
    wordman

  • Count Function Specific with Cross Tab Name for Multiple Cross Tabs

    Hello Friends I have cross Tab1 and Cross Tab2 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and DISPLAY In cross Tab2
    Dimension name is ITEM ID
    So if there are 21 items in Cross TAB1 then in Cross TAB 2
    I want to display "Number of Item" = 21
    so do this i Created a count variable
    =Count([Item ID]) In Report
    which give me 21 in cross tab1 but when I drag that to cross tab2 it give me count of Item in Cross Tab2 = 87 which is wrong since i want 21
    so How do I fix this Count in Cross Tab 2
    Please help with code to say Count([Item ID]) In Report from cross tab1
    thanks
    Soniya

    Hi,
    Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
    What result did you get?
    If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
    Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
    Regards,
    Rohit

  • Reg- Single invoice for multiple delivery docs

    Dear All,
          WIth the suggestions from the below given thread, i have changed the routines in copying control for item level as 03.
    SAP ERP Sales and Distribution (SAP SD)
    Using delivery duelist(VF04) , I selected 2 pending docs and tried to create billing doc , but it got created as separate invoice. what is the actual process to create single invoice from multiple delivery document.
    Rgds

    Those deliveries having same criteria like,
    1.  Payer
    2.  Payment Term
    3.  Incoterms
    4.  Destination country
    5.  Billing date
    6.  Actual Goods issue date
    7.  Foreign data trade
    8.  Billing doc type
    9.  Shipping conditions
    10  Account assignmment group
    11. Exchange rate
    12  Billing relevance field in the item category
    13  Sold to party
    will be combined into one Billing document automatically and this controlled from the copy control table. and it VTFL  choose your delivery header  and in that at item level VBRK/VBRP should be 001
    In VF01 you can input three or more such deliveries and execute then those will be combined in to a single bill and you can do that in VF04 also
    Regards
    Raja

  • HT1206 can you have multiple itunes accounts one computer with seperate music library for multiple iphones?

    is it possible to seperate multiple itunes store accounts and music libraries on 1 computer for 2 iphones ?

    Welcome to Apple Support Communities
    You just need to create a second iTunes account on your PC or Mac.
    To do it, open iTunes while holding down the Option (Alt) key (on a Mac) or the Shift key, and press the option to create an iTunes option. You will have to open iTunes with that key when you want to switch libraries

  • Issue material for Subcontracting with reference to PO for multiple batches

    Hi All,
    Issue: I want to issue 5-6 materials with reference to PO which have multiple batches. How can that be done?
    Thus, if my raw material in stock are:
    mat X   Batch 1    50 nos
    mat X   Batch 2    40 nos
    mat X   Batch 3     30 nos
    mat Y Batch 6    10 nos
    mat Y Batch 7    10 nos
    mat Y Batch 8    10 nos
    mat Y Batch 9    10 nos
    i f for semi finished material A, sub contractor order 45000009 is created, where raw material required are:
    Mat X      100 nos
    Mat Y      30 nos
    then how can I issue the raw materials wrt PO, and select multiple batches at the same time, without user entering the material again and again.
    I have gone through the SDN multiple times to see the probable solution exists, but I have not received any solution.
    Regards,
    Ankush

    DO MB1B transaction, with Movement type 541,
    Enter the material with different Batches for required qty. as different line items.
    e.g
    line item 1 : mat X Batch 1 50 nos
    line item 2 :  mat X Batch 2 40 nos
    line item 3 :  mat X Batch 3 10 nos
    line item 4: mat Y Batch 6 10 nos
    line item 5 :  mat Y Batch 7 10 nos
    line item 6 :  mat Y Batch 8 10 nos
    Edited by: sudhansu satapathy on Oct 21, 2011 7:29 PM

  • How to Develop with ADF Business Components for Multiple Databases

    Hi,
    I developed business component by http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html tutorial. it was work on mysql and oracle database. In mysql , Set Up Primary Key Generation is only one sequence share betweeen tables. How to make another sequence each mysql table?

    juddi,
    As that article states, the built-in capability of ADF BC uses that single table for all entities (tables) - since it's just a surrogate key, it should not matter. If you wanted different sequences for different entities (tables), that is something you'd have to code for yourself.
    Best,
    John

  • RE: Abap Code Flow for Multiple Authorization checks

    Hi all,
    I am basically a security person, but i have some doubts on Authority-check in ABAP code. so i thought this is best place to understand the execution of ABAP code.
    Q1. I know that ABAP programmers will put Authority check in ABAP code and when program was executed Authority-check will compare whether user has access to this object or not.
    for EX take some tcode ZXYY
    i activated 3 objects out of some 20 objects for this tcode in SU24.
    Authority checks are placed in the program.
    when this tcode was executed and started the ABAP code, then i think it will do the authority check for the first object and if user has the profile to it then it will go for the second authority-check for which if user does not had profile ( i made inactive in role)  will the code terminate  and throw some error there it self or will it go for the for 3rd object for which again user has access. (user got access to this 3rd object)
    can any explain?
    Q2. Should the activities be same as in Authority-check.
    I mean in Authority check if you give activities 02 and 03  and in user profile if i give only 02 will it work or not?
    thanks,
    Sun

    Refer Below Code:
    IF SY-TCODE = 'CJ40'.
         AUTHORITY-CHECK OBJECT 'ZPS_VERSN'    "'ZWMM_WERK'
            ID 'VERSN' FIELD bpdy-VERSN
            ID 'ACTVT' FIELD '01'
            ID 'ACTVT' FIELD '02'
            ID 'ACTVT' FIELD '03' .
           IF SY-SUBRC = 0.
    *        continue.
           elseif SY-SUBRC <> 0.
             AUTHORITY-CHECK OBJECT 'ZPS_VERSN'    "'ZWMM_WERK'
               ID 'VERSN' FIELD bpdy-VERSN
               ID 'ACTVT' FIELD '01'.
               IF sy-subrc = 0.
    *            CONTINUE.
               ELSEIF sy-subrc <> 0.
                  AUTHORITY-CHECK OBJECT 'ZPS_VERSN'    "'ZWMM_WERK'
                   ID 'VERSN' FIELD bpdy-VERSN
                   ID 'ACTVT' FIELD '02'.
                   IF sy-subrc eq 0 .
    *                CONTINUE.
                   ELSEIF sy-subrc <> 0 .
                     AUTHORITY-CHECK OBJECT 'ZPS_VERSN'    "'ZWMM_WERK'
                      ID 'VERSN' FIELD bpdy-VERSN
                      ID 'ACTVT' FIELD '03'.
                      IF sy-subrc = 0.
                        versn = bpdy-versn.
                        v_proj = proj-pspid.
                        wbs = PRPS-POSID.
                        set PARAMETER ID 'PSP' FIELD  v_proj.
                        set PARAMETER ID 'BP2' FIELD  VERSN.
                        set PARAMETER ID 'PRO' FIELD  wbs.
                        LEAVE TO TRANSACTION 'CJ41' AND SKIP FIRST SCREEN.
                      ELSEIF sy-subrc ne 0.
                        MESSAGE 'You are not authorised for this version.' TYPE 'E'.
                      ENDIF.
                   ENDIF.
               ENDIF.
             ENDIF.
       ENDIF.

Maybe you are looking for