Check-Out by ABAP-Code

Hi all,
I need to check-out objects of the solution directory to the maintenance project  by ABAP code.
What classes or function modules can I use?
And can I use the same classes or function modules to check-in these objects later?
Thank's for your help,
Urs

Hi,
WebDynpro should automatically check-out source files if you want to modify something.
If you are not asked for an activity: Or you logged on? You didn't accitdentally check the checkbox "keep local for now" when creating a new DC? Or do you have an activity that is marked as default activity so the NWDS automatically added the files to that activity without an explicit dialog?
Making changes, activating them later and deploying locally built (inactive) deployables into a local/test J2EE engine does make perfect sense to me. You are testing before you commit your changes and publish them to you colleagues (to switch language a bit). Sounds OK to me.
Regards,
Marc

Similar Messages

  • Check out ESS source code

    Hi Experts,
    EP7.0 SP11 ESS1.0 ERP2005, NW2004s.
    NWDI is installed successfully and two tracks are created according to the NWDI cookbook for ESS. Development configuration is imported into NWDS. Here our NWDI DEV  system is used as local J2EE engine in NWDS for local test purposes.
    I also created a project under <b>InActive DCs</b> views in NWDS. In the web dynpro perspective I could see the source of the applications (ex. DC ess~ben). I have read in the forums to check out the source code. Here I do not see any option to check out!! where will I see the option?
    when a new project is created in Inactive Dcs view, it should ask for creating an activity, but this did not happen!! should i create a activity in DTR perspective?
    it seems to me i can make the changes in the inactive dcs and then activate them later and deploy into local j2ee engine (here NWDI DEV) for test purposes. Is it ok?
    Regards!

    Hi,
    WebDynpro should automatically check-out source files if you want to modify something.
    If you are not asked for an activity: Or you logged on? You didn't accitdentally check the checkbox "keep local for now" when creating a new DC? Or do you have an activity that is marked as default activity so the NWDS automatically added the files to that activity without an explicit dialog?
    Making changes, activating them later and deploying locally built (inactive) deployables into a local/test J2EE engine does make perfect sense to me. You are testing before you commit your changes and publish them to you colleagues (to switch language a bit). Sounds OK to me.
    Regards,
    Marc

  • Supress authentication check from within ABAP code

    Hi,
    we want all users to update their email-address in their own sap profile. (a self service)
    By default, in the screen "System"->"User Profile"->"Own Data", he can update all except his email-id.
    For this, we have written an abap report.
    DATA: p_smtp TYPE TABLE OF bapiadsmtp WITH HEADER LINE,
          p_return TYPE TABLE OF bapiret2 WITH HEADER LINE,
          p_addressx TYPE bapiaddr3x.
    data: p_uname TYPE xubname.
    PARAMETERS:   p_email TYPE ad_smtpadr OBLIGATORY.
          p_uname = sy-uname. "logged in user
          p_smtp-e_mail = p_email.
          p_smtp-std_no = 'X'.
          p_smtp-home_flag = 'X'.
          p_smtp-consnumber = '001'.
        p_addressx-e_mail = 'X'.
        CALL FUNCTION 'BAPI_USER_CHANGE'
          EXPORTING
            username = p_uname
            addressx = p_addressx
          TABLES
            return   = p_return
            addsmtp  = p_smtp.
    when we execute this report, with all rights, it works fine.
    but a normal user when he executes, he is getting this error:
    "You are not authorized to change users in group"
    the su53 screen shows:
       Authorization check failed
      Object Class BC_A Basis: Administration
        Authorization Obj. S_USER_GRP User Master Maintenance: User Groups
          Authorization Field ACTVT Activity
                                                                                    02
          Authorization Field CLASS User group in user master maintenance
                                                                                    <Dummy>
    the point here is we cannot add User Maintenance rights to all our normal users.
    is there any way, within the report (code) we can suppress the authentication check, programatically just while calling 'BAPI_USER_CHANGE', so that the user will be able to update his email-id.
    thanks in advance,
    Madhu_1980

    Here are 2 useful links:
    http://www.sapdev.co.uk/fmodules/fms_updateaddress.htm
    Updating email address in SU1/SU3
    If these don't help the noly thing I can suggest is that you write your own bdc program.
    Regards,
    Warren.

  • If  I know authority object is 'S_OC_SEND', how to check it in ABAP code ?

    Can i find if people in other place check the authority 's_oc_send'.
    Best regards,

    Hi Blake,
    Check program RSUSR060
    Thanks
    Lakshman

  • Error in check out operation

    We have implemented CMIS server side code in our DAM system. I have made the connection to it from Drive using the CMIS connector. I can see the folders and documents alright but when I select to check out from the Drive context menu of a document, it gives me the following error on the screen -
    The operation could not be completed. The operation would make a conflicting change to an item that is already checked out. Error code : 6.
    There is nothing in the Drive logs to troubleshoot the issue.
    If someone can please provide any directions on how to proceed further with this, that will be very helpful.

    Hallo,
    ich bin am 25. Juli 2011 wieder im Büro und werde Ihre Mail dann beantworten. In dringenden Fällen wenden Sie sich bitte an unser Büro unter +43 1 9902 804 oder [email protected]
    Mit freundlichen Grüßen,
    Martin Gilly.
    Hello,
    I will be in the office again on July 25th and will then take care of your mail. In urgent cases, please contact our office @ +43 1 9902 804 or [email protected]
    Kind Regards,
    Martin Gilly.

  • How to Explicit Check-Out

    Hello,
    How do I check-out the source code explicitly in the Netweaver developer Studio. I know, when we create new code, it prompts for check-out. But where is the context menu to choose check-out?.
    Thanks,
    Sunita.

    Hi Sunita,
    the option is named "Edit (exclusive)" when you do a checkout using the context menu.
    If you let the wizard tell you when you have to check out there is a checkbox giving you the alternative to do an exclusive checkout.
    Please keep in mind that this is not good practice in Java. But it can help you avoiding merging in WD as there is no tool support yet. So use it with care.
    Best regards,
    Timo

  • Update after check-out

    Hello,
    One of my colleague had checked-in the code in his Studio. How Do I get the updated code in my studio with re-importing the Dev Config. How do I get those changes in my developer Studio?.
    Thanks,
    Sunita.

    No, it will not overwrite your code with someone else's code (if you did a proper check-out of the code). You must pay attention during check-in though. You might get a conflict that the DTR is not able to resolve that by itself. If any conflict occurs, you'll see a red line in the DTR console. You can then use the DTR Integration Conflicts view to resolve any conflicts.

  • 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.

  • Difference between checking Objects in SU24 and in ABAP code

    Hi all,
    What is the difference between objects checked in SU24 and the objects checked in ABAP Code.
    I think if objects are even checked to No in SU24 and they are in ABAP code then user is able is able to execute that object, is this correct?
    and vice versa, if objects are checked to yes in su24 and not in the ABAP code then user wont be able to excute? is this correct
    or what is the purpose of maintaing objects both in SU24 and in ABAP Code.
    Thanks,
    Sun

    This is what is known in German as a "Schwerer Geburt"... (not sure whether there is an English term which has the same meaning)...
    When you searched, did you read this thread?:
    F110 - S_BTCH_ADM
    >
    Julius Bussche wrote:
    > My understanding of this confusion is ...
    >
    > ... SAP's development systems deem an "unknown" check to be successfull until specifiied for a check (this is different in customer systems - which leads many to believe that adding and removing check indicators from SU24 will add and remove authority-checks....),
    >
    > ...This problem then reproduces itself both in SU53 and ST01 once the SU22 / SU24 error has been made.
    >
    > ...It is one of those things which you need to know or find on your own (not too difficult), otherwise you simple don't know it.
    It is context specific, when the context is known to the customer system where the code is running => You cannot activate a check in SU24 if it is not coded anywhere (please distingish between starting a transaction, using it, and navigating further from that transaction...). The only case where SAP does what you seem to be assuming (or hoping for...) is infact to turn an authority-check off in some cases or to make the calling context known when it is remote (in which case sy-tcode or the entry point context is not known)...
    *It is not to turn the check on when it is not coded anywhere!!!
    Perhaps you would like to phrase your final question just one more time.
    Cheers,
    Julius

  • Custom Spell Check from ABAP Code without MS Word

    Hi All,
    I am working on a requirement where we need to check for misspelt words in a string that is received from another system. I have come across a number of FM's which can be used to check for spellings but all of the require MS Word to be installed in our PC, but I am looking for a solution that does not involve MS Word. If any of you have come across any external tool that can be called from ABAP code or any suggestion on a logic that can be built please pass it on. Any pointers or help in this regard would be highly appreciated.
    Thanks,
    Praveen

    Hi,
    Try the "CF_WWSpeller" customtag which actually uses the
    Winword spelling engine,
    http://web4w3.com/wwspeller.html

  • Double spaces after checking out the code

    Hi Guru's,
    I am seeing double spaces in my code after checking out in cvc.
    Could anyone please help me how to remove the spaces.
    Thanks.

    Like this: Re: Error starting at line 1 in command ?
    Might be more appropriate to post in SQL Developer Forum.
    Regards
    Etbin

  • OSB - CVS Source code check-out to Eclipse (INDIGO OEPE11.1.1.8)

    Hi ,
    I am facing issue with CVS check-out. I have checkout the source code to eclipse from CVS and created one configuration project in the eclipse and drag and drop the OSB project into the configuration project but eclipse is showing so many errors and not displaying the code in designer mode. Could you please tell me the correct process to set up the OSB project in eclipse with the existing CVS source code, if I am wrong.
    sometimes when i do drag and drop to configuration project , getting below error in eclipse :
    Problems occurred moving the selected resources.
      Path for project must have only one segment.
      Path for project must have only one segment.

    Hi,
    You should be able to follow the document for the new version, check this link, may there is some difference...
    http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/developingeclipse.htm#OSBDV1385
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Inner join Vs Outer join with ABAP code...?

    Inner join Vs Outer join with ABAP code...?

    Inner Join means, it will not select that recor at all, unless there is a matching entry in the second table.
    suppose table VBAK INNER join table VBAP on VBAKVBELN = VBAPVBELN.
    In this case, if there are no entries in VBAP, the header entry also will not show up.
    But in case of OUTER JOIN, even if there is no items, it will show the header entry(VBAK) with blank columns for fields  from item table.(VBAP)
    here is one sample for inner join.
    SELECT   A~EBELN
               A~EKORG
               A~EKGRP
               A~BSART
               A~LPONR
               A~LOEKZ
               A~LIFNR
               A~RESWK
               B~AEDAT
               B~WERKS
               B~MATNR
               B~MENGE
               B~EBELP
               B~ELIKZ
               B~PLIFZ
               B~PSTYP
               B~KNTTP
               B~MATKL
               B~ZZD_PLANT
               FROM EKKO AS A INNER JOIN EKPO AS B
               ON
               AEBELN = BEBELN
               INTO CORRESPONDING FIELDS OF TABLE T_DATA
               FOR ALL ENTRIES IN T_EKET
               WHERE
               A~EBELN EQ T_EKET-EBELN AND
               A~BSART EQ C_UBSTO      AND
               A~EKORG IN S_EKORG      AND
               A~EKGRP IN S_EKGRP      AND
               A~BSTYP EQ C_BSTYP      AND
               A~LOEKZ EQ SPACE        AND " Order not deleted
               A~RESWK IN S_RESWK      AND
               B~EBELN EQ T_EKET-EBELN AND
               B~EBELP EQ T_EKET-EBELP AND
               B~WERKS IN S_WERKS      AND
               B~MATNR IN S_MATNR      AND
               B~MATKL IN S_MATKL      AND
               B~LOEKZ EQ SPACE.           " Line item not deleted

  • Enhancement-ABAP Code-Customized Field issue

    Hi Experts,
    Currently I am working on the BW3.5 version. We are using the standard SRM standard extractor 0BBP_TD_SC_1 and we enhance same extractor(populate the filed through CMOD - ABAP Code) with one customized field also. We are having issue on the customized field data which post from SRM system. I have verified the field value and value is fine in RSA3 in SRM source system. But while posting into the BW(PSA itself), its loading correct & wrong value. When i check the PSA for the particular load, It looks little strange. In the PSA, I can see correct value on my first record of the same SC and then next records has incorrect value of the same SC. Currently I am using the ODS as a data target. So finally i am getting the incorrect value on the customized field.
    Ex Scenario:
    Ex Customized Field: ZORGID
    In SRM source system RSA3 Extractor Checker value:
    Shopping Card No: 100
    Customized Field: ZORGID=1
    Shopping Card No: 200
    Customized Field: ZORGID=2
    In BW posting-PSA:
    Shopping Card No: 100
    Customized Field: ZORGID=2
    Shopping Card No: 200
    Customized Field: ZORGID=2
    At the same time, if i do the selective deletion of the particular Shopping Card or group of SC in BW and do the full repair, then it gets a correct ZORGID=1 for the same Shopping Card.
    I strongly believe, something wrong in the ABAP code. But when we tried to debug the customized filed value in RSA3. The value is fine. so we unable to trace out the issue. Please help me to fix the code. Thanks in advance.
    CMOD ABAP Code:
    *Populate approver ID even though it doesn't require approval this is required to make sure BW reports have restrict access to respective Org Unit approvals only
    IF l_s_bbp_sc-approver_id IS INITIAL AND l_s_bbp_sc-itm_guid IS NOT INITIAL.
    CALL FUNCTION 'Z_BBP_FIRST_APPROVALGET'
    EXPORTING
    iv_header_guid = l_s_bbp_sc-guid
    iv_itm_guid = l_s_bbp_sc-itm_guid
    IMPORTING
    approver_no = l_s_bbp_sc-approver_id
    EXCEPTIONS
    no_data = 1
    OTHERS = 2
    IF sy-subrc 0.
    ENDIF.
    ENDIF.
    To ensure that the Org Unit passed in into the field
    l_s_bbp_sc-zzapprov_orgunit belongs to the Actual Level 1
    Budget Owner and not any other manager such as Added Approver.
    CLEAR : ls_ln_approvers, l_userid, lv_bpartner_guid.
    DATA : lv_f_apprv_part TYPE BU_PARTNER.
    READ TABLE lt_ln_approvers INTO ls_ln_approvers
    WITH KEY INITIAL_INDEX = '0000000001'.
    IF sy-subrc EQ 0.
    MOVE ls_ln_approvers-approval_agent+2(12) TO l_userid.
    CALL FUNCTION 'BP_CENTRALPERSON_GET'
    EXPORTING
    iv_username = l_userid
    IMPORTING
    ev_bu_partner_guid = lv_bpartner_guid
    EXCEPTIONS
    no_central_person = 1
    no_business_partner = 2
    no_id = 3
    OTHERS = 4.
    IF sy-subrc = 0.
    CALL FUNCTION 'BUPA_NUMBERS_GET'
    EXPORTING
    iv_partner_guid = lv_bpartner_guid
    IMPORTING
    ev_partner = lv_f_apprv_part.
    ENDIF.
    ENDIF.
    We get the BP number of the first Budget Owner 1
    Here, we superseed the field l_s_bbp_sc-approver_id
    whereby it may be wrong due to Added Approver.
    IF l_s_bbp_sc-approver_id IS NOT INITIAL.
    IF lv_f_apprv_part IS NOT INITIAL.
    IF l_s_bbp_sc-itm_guid IS NOT INITIAL.
    CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
    act_otype = 'BP'
    act_objid = lv_f_apprv_part
    act_wegid = 'EBP-UP'
    act_begda = sy-datum
    act_endda = sy-datum
    act_tdepth = 4
    TABLES
    result_tab = lt_result_tab
    EXCEPTIONS
    no_plvar_found = 1
    no_entry_found = 2
    OTHERS = 3
    IF sy-subrc = 0.
    READ TABLE lt_result_tab INTO ls_result_tab WITH KEY
    otype = 'O'.
    IF sy-subrc EQ 0.
    l_s_bbp_sc-zzapprov_orgunit = ls_result_tab-objid.
    ELSE.
    ENDIF.
    ENDIF.
    ENDIF.
    Thanks,
    RR

    Hi Experts,
    Any suggestions. Thanks.
    Thanks,
    RR

  • IDOC: How to create child segment with abap code.

    Hi,
    I'am trying to write an abap code to create segments for an Idoc which structure is the following:
    ZLE_00060_DLVY
    >  E1EDL20
    > Z1DEL_CONS
    >Z1DEL_MAT_HEADER
    > Z1DEL_MAT
    > E1EDL20RET2
    > E1EDL22
    > E1EDL21
    > E1EDL23
    > E1EDL51
    I receive a sintax error: Error in IDoc with status 26 .
    Checking the result I note all segment at the same level and an error about the segment E1EDL22
    EDI: Syntax error in IDoc (segment cannot be identified)
         Message no. E0078
    Diagnosis
         The segment E1EDL22 does not occur at the current level of the basic
         type DELVRY05 (extension ZLE_00060_DLVY).
         This error can have several reasons:
         o   The segment E1EDL22 is assigned to a group whose header segment does
             not occur.
         o   The segment E1EDL22 does not exist in the syntax description of the
             basic type DELVRY05 (extension ZLE_00060_DLVY).
         o   The sequence of segments in the group in which the segment appears
             is incorrect.
         Previous errors ('mandatory' segment or group missing) may be due to
         this error.
    Procedure
         Please check the IDoc or the syntax description of the basic type
         DELVRY05 (extension ZLE_00060_DLVY).
    After the error I have:
    data records
    E1EDL20
    Z1DEL_CONS
    Z1DEL_MAT_HEADER
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    E1EDL20RET2
    E1EDL22
    E1EDL21
    Abap code:
            idoc_data-segnam = 'Z1DEL_CONS'.
            idoc_data-sdata = s_z1del_cons.
            append idoc_data.
              idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
              s_z1del_mat_header-tsegment = 'MATERIAL'.
              idoc_data-sdata = s_z1del_mat_header.
              append idoc_data.
            clear idoc_data-sdata.                            <<<<<<<<<<< how to indent the structure because this is a child.
             idoc_data-sdata = s_Z1DEL_MAT.
             idoc_data-segnam = 'Z1DEL_MAT'.
             append idoc_data.
             idoc_data-segnam = 'E1EDL20RET2'.
             idoc_data-sdata = s_E1EDL20RET2.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL22'.
             idoc_data-sdata = s_e1edl22.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL21'.
             idoc_data-sdata = s_e1edl21.
             append idoc_data.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi,
    following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE  EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
    In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
    Then, I need to add a new segment and one child.
    Any suggestion will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

Maybe you are looking for

  • AC Adapter for X230t

    Does anyone know what kind of ac adapter I need for a ThinkPad X230t?  I can't seem to figure it out.  Thanks!

  • Changing order line item move-out date

    Hi All, I am pretty new on the CRM end. I have a requirement where- in i need to change the move-out date on the order line item. Could someone help me out what needs to be done in order to achieve the desired functionality. Thanks, Im

  • Mail & Safari Troubles

    Hi all i started my macbook today and it was relatively slow to start. When i fired up safari i was asked for a keychain password (a request i have never seen before). as far as i know i don't have a keychain password so i pressed cancel. again the s

  • Save / Restore State Question

    When writing a custom component, does one need to save/restore the state of facets and children. Or is this done automatically? Thanks, Ryan

  • Was there a FlashPlayer update from 11.3.300.271 to 11.4.402.265?

    All download links point to the new v11.4. Also all download links for v10 point to the new 10.3.183.23. Is there an announcement somewhere?