Creation of role using T-code PFCG in R/3

Hi Experts,
I have created a Role using PFCG inorder to give acess only to three T-codes(PZ09. PZ80,PZ88).
so i have created a role intially using PFCG and incorporated PZ09 tcode in it and assigend the Role to users in R/3. it is displaying the TCode(PZ09) in Portal.
Now again i have added PZ80 & PZ88 to the same Role in R/3, but now i am getting an error:
Infotype 0000 does not exist.
but whereas when i assign SAP_ALL they(PZ88 & PZ 80) are working fine.
Is they anything i can do so that i can avoid assigning SAP_ALL Profile to the users and eliminate the Error "Infotype 0000 does not exist.
Thanks Inadvance,
Regards,
Siva

Hi,
Thanks for your reply,
Creation of role using T-code PFCG in R/3
The above link has solved my issue, Thank you!
Regards,
Siva

Similar Messages

  • Automatic creation of Notification using T-code IK11

    Hi Gurus,
      i got stuck in a requirement, where they want Automatic creation of notification using T-code IK11.
    I am using EXIT IMRC0001.
        Please guide me that with what logic i should go.
    Thanks
    Regards
    VICKY
    Moderator Message: Vague Question. Expecting others to do your work for you => Thread Locked.
    Edited by: kishan P on May 12, 2011 12:35 PM

    In the role give Authorization object P_ORIGIN for Infotype 0, 1 and 2. with Authorization level as R (read)
    This will resolve your issue then no need to give sap_all authorization
    Good Luck
    - Ashish

  • VIRSA mass creation of roles

    Hi All:
            Can anyone tell me how to perform mass creation of roles using VIRSA role expert,also if you could point me to some documentation it will be very helpful.
            Thanks,
              J D

    Hi Olivier,
    I am afraid, my help is limited to this forum.
    However, I can help you with some ABAP logic :
    Table AGR_1252 is used to store the ORG values of derived roles.
    You can start working with an ABAP'er to get his coding magic started. Though I am not familiar with ABAP, I believe our ABAP'er debugged PFCG and  knew what needed to be done. I have no clue what he did
    the logic:
    Start of Selection
    Load information into internal tables for use in creating report
    Upload the Organsational Changes Spreadsheet
    Ensure Roles exist and there are no duplicates
    Ensure Organistional levels exist and there are no duplicates
    *Checks if the file exists
    Role must exist
    Ignore duplicate roles
    Authority Check Role for user
    IMP Logic checks-
    For Add High range of Role must be greater than low range
    *...if adding specific ranges - remove existing * or space entry if it
      exists
    *...if adding * access remove other accesses if they exist
    *Process All Org Levels for each role
    ...submit report to generate profiles
    You can start working with your ABAP'er with this logic.
    *Disclaimer* - this may need enhancements to meet your requirements. Also, I have just put the logic what I could remember at the top of my head. I may have missed something.
    Hope it helps
    Abhishek

  • How to add iview to role using webdynpro

    Hi every one, Can you please tell me how to add iview to role using webdynpro code.
    Thanks
    TK

    Hi,
    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !
    regards
    Fred

  • Need code for Sales order creation in oops using xi as integration server

    Need code for Sales order creation in oops using xi as integration server.

    hi rocky,
              could you pls give a bit explanation on what you are expecting.
    regards,
    Pavan

  • Role creation: SAP ALL with SU01 and PFCG in display only

    hi all,
    I am looking for the easiest way to create a "sap all " like role with SU01 and PFCG in display only.
    i found several solutions, which sound very complicated.
    Thank you in advance,
    Julien

    Hi,
    As per your query there is not profile of SAP to give display authorisation, for this you have to create new profile on module wise and assign to user.
    Anil

  • T-code CJ88 role authorization  using company code?

    Hi expert!
    who can tell me how to control  CJ88 T-code using company code .
    the business is below:
    1, the user have 10 company code  and only one control ares.
    2, one employee cannot use CJ88 to settlement the project of the other company code.
    can any one tell me how can i control
    Please explain me all the steps to be required.
    Thanks in advance!

    I am not sure about CoCode wise authorization for CJ88...you said you have 10Cocodes, if the Person Responsible of the projects are different for each cocode, then use authorization object C_PROJ_VNR (Project Manager for Proj Def) or C_PRPS_VNR(project manager for WBSE) for running CJ88, so that person repsonsible of other company code project cannot run settlement of other projects.

  • Creation of folder structure using RIDC code

    Hi,
    Can anyone help me out in creating a folder structure in UCM using RIDC code by using IDC services.
    When i am trying to create folder in UCM i am getting this error :oracle.stellent.ridc.protocol.ServiceException: Unable to display virtual folder information. Unable to open folder.
    my snippet is given below:
    public boolean createSubmission(String journalName,
    String submissionID) throws Exception {
    IdcClientManager manager = new IdcClientManager();
    IdcClient idcClient;
    try {
    idcClient = manager.createClient("idc://localhost:4444");
    IdcContext userContext = new IdcContext("weblogic", "welcome1");
    String PATH="/Contribution Folders";
    DataBinder dataBinder = idcClient.createBinder();
    dataBinder.putLocal("IdcService", "COLLECTION_NEW");
    dataBinder.putLocal("hasParentCollectionID", "true");
    dataBinder.putLocal("dCollectionName", submissionID);
    dataBinder.putLocal("dParentCollectionID",this.getFolderIdFromPath(idcClient,userContext,PATH +"/"+journalName));
    dataBinder.putLocal("dCollectionOwner", "sysadmin");
    ServiceResponse response =idcClient.sendRequest(userContext, dataBinder);
    DataBinder serverBinder = response.getResponseAsBinder();
    System.out.println("dCollectionID.... "+serverBinder.getLocal("dCollectionID"));
    } catch (IdcClientException e) {
    e.printStackTrace();
    return false;
    private String getFolderIdFromPath(IdcClient idcClient,
    IdcContext userContext, String path) {
    String folderId = null;
    // Long folderId =0L;
    try {
    DataBinder dataBinder = idcClient.createBinder();
    dataBinder.putLocal("IdcService", "COLLECTION_INFO");
    dataBinder.putLocal("hasCollectionPath", "true");
    dataBinder.putLocal("dCollectionPath", path);
    ServiceResponse response =
    idcClient.sendRequest(userContext, dataBinder);
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("PATH");
    DataObject dataObject =
    resultSet.getRows().get(resultSet.getRows().size() - 1);
    folderId = dataObject.get("dCollectionID");
    System.out.println("folderId... "+folderId);
    } catch (IdcClientException e) {
    e.printStackTrace();
    return folderId;
    Thanks in advance.

    Hi,
    Is your problem solved??
    please share solution..
    I am facing same issue..
    While running custom code for creating virtual folder.
    public class createFolders
        public createFolders ()
            super();
        storedValue obj=new storedValue();
        public String name=null;
      private String getFolderIdFromPath(IdcClient idcClient,
       IdcContext userContext, String path) {
       String folderId = null;
       // Long folderId =0L;
       try {
       DataBinder dataBinder = idcClient.createBinder();
       dataBinder.putLocal("IdcService", "COLLECTION_INFO");
       dataBinder.putLocal("hasCollectionPath", "true");
       dataBinder.putLocal("dCollectionPath", path);
       ServiceResponse response =
       idcClient.sendRequest(userContext, dataBinder);
       DataBinder serverBinder = response.getResponseAsBinder();
       DataResultSet resultSet = serverBinder.getResultSet("PATH");
       DataObject dataObject =
       resultSet.getRows().get(resultSet.getRows().size() - 1);
       folderId = dataObject.get("dCollectionID");
       System.out.println("folderId... "+folderId);
       } catch (IdcClientException e) {
       e.printStackTrace();
      return folderId;
      public void createchild1(String folderName)
           try
               if(!(obj.getProject()==null))
               IdcClientManager clientManager1 = new IdcClientManager();
               IdcClient client1 =clientManager1.createClient("idc://localhost:4444");
               IdcContext userContext1 = new IdcContext("weblogic", "welcome1");
               if (!(userContext1 == null))
                   DataBinder binder1 = client1.createBinder();
                   client1.sendRequest(userContext1 , binder1);
              String PATH;
              PATH = "/Contribution Folders/IDFC" +"/"+folderName;
              System.out.println(PATH);
                   binder1.putLocal("dSecurityGroup", "Public");
                   binder1.putLocal("dOwner", "weblogic");
                   binder1.putLocal("IdcService", "COLLECTION_ADD");
                 binder1.putLocal("HAS_COLLECTION_PATH", "true");
                 binder1.putLocal("hasParentCollectionID", "true");
                 //binder.putLocal("dCollectionInherit","0");
                 String id = this.getFolderIdFromPath(client1,userContext1,PATH);
                 System.out.println("ID: " + id);
                 binder1.putLocal("dParentCollectionID", this.getFolderIdFromPath(client1,userContext1,PATH)); 
                   binder1.putLocal("DCOLLECTIONNAME", obj.getProject());
                   System.out.println("FolderName" + obj.getProject());
                   System.out.println("userContext is:" + userContext1);
                   System.out.println("dataBinder is:" + binder1);
                   ServiceResponse resp1 = client1.sendRequest(userContext1, binder1);
                   System.out.println("response is:" + resp1);
                   DataBinder serverBinder = resp1.getResponseAsBinder();
               catch (Exception ex)
               ex.printStackTrace();
    I am getting following error..
    !csUserEventMessage,weblogic,CIS!$!csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
    intradoc.common.ServiceException: !csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
    *ScriptStack COLLECTION_ADD
    3:addCollectionInCollection,**no captured values**
            at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
            at intradoc.server.Service.buildServiceException(Service.java:2326)
            at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
            at collections.CollectionUserHandler.addCollectionInCollection(CollectionUserHandler.java:638)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
            at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
            at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
            at intradoc.server.Service.doCodeEx(Service.java:603)
            at intradoc.server.Service.doCode(Service.java:575)
            at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
            at intradoc.server.Service.doAction(Service.java:547)
            at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
            at intradoc.server.Service.doActions(Service.java:542)
            at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
            at intradoc.server.Service.executeActions(Service.java:528)
            at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
            at intradoc.server.Service.doRequest(Service.java:1956)
            at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
            at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
            at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Any help is appreciated...
    Thanks in advance

  • Background job fails for BDC profile creation and role assignment

    Hi Experts,
    I have created a BDC Function module for Tcode 'PFCG' for profile creation and role assignment, and called this FM in my zprogram. the problem is that when i run this program in foreground it executes succesfully, but if i schedule it in background it fails throwing error in job log 'Role 'Z...' does not contain any active authorizations'. But i have created one more program to create authorization objects which runs before this zprogram.I have also checked the authorization object in 'RSECADMIN', it reflects active. I dont understand whats happening exactly when it runs background.
    Below is the process of job
       1. ZMIS_AUTH_OBJECT_CREATE
           Variant : auth-create
       2. ZMIS_AUTH_ASSIGN_TO_ROLE
           Variant : auth-assign
    The problem is in second program, runs in foreground but fails in background.
    Code which i have written in my second program
    ***BDC for Profile creation and assignment to Roles
        CALL FUNCTION 'ZROLE'
          EXPORTING
           ctu                     = 'X'
           mode                    = p_mode
           UPDATE                  = 'L'
    *   GROUP                   =
    *   USER                    =
    *   KEEP                    =
    *   HOLDDATE                =
           nodata                  = '/'
            agr_name_neu_001        = wa_role-role_name
            text_002                = wa_role-desc
            text_003                = wa_role-desc
            text_004                = wa_role-desc
           value_01_005            = 'T-ML330881'
            h_fval_low_01_006       = wa_role-auth
            profn_007               = lv_profile
            ptext_008               = lv_text1
    * IMPORTING
    *   SUBRC                   =
         TABLES
           messtab                 = temp_message.
    ***Generation of Profile created
    CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
         EXPORTING
           activity_group                      = wa_role-role_name
    *     PROFILE_NAME                        =
    *     PROFILE_TEXT                        =
          no_dialog                           = ' '
          rebuild_auth_data                   = ''
          org_levels_with_star                = ' '
          fill_empty_fields_with_star         = 'X'
          template                            = ' '
          check_profgen_tables                = 'X'
          generate_profile                    = 'X'
          authority_check_pfcg                = 'X'
       EXCEPTIONS
         activity_group_does_not_exist       = 1
         activity_group_enqueued             = 2
         profile_name_exists                 = 3
         profile_not_in_namespace            = 4
         no_auth_for_prof_creation           = 5
         no_auth_for_role_change             = 6
         no_auth_for_auth_maint              = 7
         no_auth_for_gen                     = 8
         no_auths                            = 9
         open_auths                          = 10
         too_many_auths                      = 11
         profgen_tables_not_updated          = 12
         error_when_generating_profile       = 13
         OTHERS                              = 14  .
    Experts please help me out its very urgent. your help is appreciated and rewarded. Thanking you in advance.
    Regards,
    Chetan

    Hi Praveen,
    Yeah definately, my requirement is that I have to access of some BI reports to certain users, so contract data will be downlaoded from ECC on application server, need to read that file from application server and for the each contract i ahould create a authorization object, role creation and assigning of role to the user and profile generation and activation.
    To achieve this i have written two programs
    1) ZMIS_AUTH_OBJECT_CREATE- This program will create the Authorization Object using BDC and Role creation Using the BAPI
    "" Creation of Authorization Object
    CALL FUNCTION 'ZAUTHOBJ'
            EXPORTING
             ctu                    = 'X'
             mode                   = p_mode
             UPDATE                 = 'L'
    *   GROUP                  =
    *   USER                   =
    *   KEEP                   =
    *   HOLDDATE               =
             nodata                 = '/'
             g_authname_001         = 'ZDUMMY_MIS'
              g_targetauth_002       = wa_tab-auth
              g_authtxt_003          = wa_tab-short_desc
              g_authtxtmd_004        = wa_tab-med_desc
             marked_04_005          = 'X'
              g_authtxt_006          = wa_tab-short_desc
              g_authtxtmd_007        = wa_tab-med_desc
             tctiobjnm_04_008       = 'ZBUS_UNIT'
              g_authtxt_009          = wa_tab-short_desc
              g_authtxtmd_010        = wa_tab-med_desc
             marked_05_011          = ''
             opt_01_012             = 'EQ'
              low_01_013             = wa_tab-bu
              g_authtxt_014          = wa_tab-short_desc
              g_authtxtmd_015        = wa_tab-med_desc
             marked_04_016          = 'X'
              g_authtxt_017          = wa_tab-short_desc
              g_authtxtmd_018        = wa_tab-med_desc
             tctiobjnm_04_019       = 'ZCONTRCT'
              g_authtxt_020          = wa_tab-short_desc
              g_authtxtmd_021        = wa_tab-med_desc
             marked_05_022          = ''
             opt_01_023             = 'EQ'
              low_01_024             = lv_contract
              g_authtxt_025          = wa_tab-short_desc
              g_authtxtmd_026        = wa_tab-med_desc
              g_authtxt_027          = wa_tab-short_desc
              g_authtxtmd_028        = wa_tab-med_desc
              g_authname_029         = wa_tab-auth
    * IMPORTING
    *   SUBRC                  =
           TABLES
             messtab                = temp_message.
    "" Creation of role
    LOOP AT it_role INTO wa_role.
          CLEAR wa_text.
          wa_text-text = wa_role-desc.
          wa_text-langu = 'E'.
          APPEND wa_text TO it_text.
          wa_jobrole-agr_name = wa_role-role_name.
          wa_parentrole-agr_name = 'ZM_CT_DUMMY_MIS'.
          wa_method-usmethod = 'CHANGE'.
          CALL FUNCTION 'ZBAPI_JOBROLE_CLONE'
            EXPORTING
              jobrole          = wa_jobrole
             parent           = wa_parentrole
             method           = wa_method
           TABLES
    *   RETURN           =
             shorttext     = it_text
    *   LONGTEXT         =
    *   MENU_NODES       =
    *   MENU_TEXTS       =.
        ENDLOOP.
    2) ZMIS_AUTH_ASSIGN_TO_ROLE - This program will generate the profile created assign it to the role.
      ""*BDC for Profile creation and assignment to Roles
        CALL FUNCTION 'ZROLE'
          EXPORTING
           ctu                     = 'X'
           mode                    = p_mode
           UPDATE                  = 'L'
    *   GROUP                   =
    *   USER                    =
    *   KEEP                    =
    *   HOLDDATE                =
           nodata                  = '/'
            agr_name_neu_001        = wa_role-role_name
            text_002                = wa_role-desc
            text_003                = wa_role-desc
            text_004                = wa_role-desc
           value_01_005            = 'T-ML330881'
            h_fval_low_01_006       = wa_role-auth
            profn_007               = lv_profile
            ptext_008               = lv_text1
    * IMPORTING
    *   SUBRC                   =
         TABLES
           messtab                 = temp_message .
       COMMIT WORK AND WAIT.
    ""*Generation of Profile created
      LOOP AT it_role INTO wa_role.
        CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
         EXPORTING
           activity_group                      = wa_role-role_name
    *     PROFILE_NAME                        =
    *     PROFILE_TEXT                        =
          no_dialog                           = ' '
          rebuild_auth_data                   = ''
          org_levels_with_star                = ' '
          fill_empty_fields_with_star         = 'X'
          template                            = ' '
          check_profgen_tables                = 'X'
          generate_profile                    = 'X'
          authority_check_pfcg                = 'X'
       EXCEPTIONS
         activity_group_does_not_exist       = 1
         activity_group_enqueued             = 2
         profile_name_exists                 = 3
         profile_not_in_namespace            = 4
         no_auth_for_prof_creation           = 5
         no_auth_for_role_change             = 6
         no_auth_for_auth_maint              = 7
         no_auth_for_gen                     = 8
         no_auths                            = 9
         open_auths                          = 10
         too_many_auths                      = 11
         profgen_tables_not_updated          = 12
         error_when_generating_profile       = 13
         OTHERS                              = 14
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDLOOP.
    For creating authorization objects, role & profile i have created one dummy auth, dummy role & dummy profile respectively.
    i have created dummy objects to copy the roles from dummy object and assign the same to new Auth obj, role & profile.
    Let me know what needs to be done. because these both the programs run perfectly in foreground, but fails in background.
    Regards,
    Chetan

  • Creating a role for t.code FBL1N

    Hi All,
    Creating a role (PFCG), I've to assign the t.code FBL1N only.
    In this role and for the t.code FBL1N, I've to exclude a certain Vendor Account Group.
    Could anyone help me?
    Thanks

    Hi ,
    For the task that you want to perform .
    First of all have a basic idea of how the authorization objects pertaining to a T code are checked , go to T code SU24 and give the input transaction as FBL1N and execute . there you will find the list of all the authorization objects that would be available for FBL1N.
    go through their documentation and understand the behaviour .
    Secondly , in case of FBL1n you cannot restrict based on account group at the granual level you can control on document type authorization group F_BKPF_BLA .
    For creating a role Go to t code PFCG create a role assing the t code , provide the auhtorization values , generate the role and assign the role to the user ID that you want to assign it to .
    Hope this helps .
    Regards ,
    Dewang T .

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

  • Users are not removed from role using UME API

    Hello,
    I am using this code to remove users from a batch of roles that I have.
    Everything is running OK, no exception is thrown and at the System.out I see all the actions that needs to be taken correctly. The problem is that if I'll go later to one of the roles the users are still assigned to it. Any idea what I'm doing wrong here?
    try
    IRoleFactory roles = UMFactory.getRoleFactory();
    IUserFactory users = UMFactory.getUserFactory();
    IRoleSearchFilter filter = roles.getRoleSearchFilter();
    filter.setUniqueName("<My_filter>", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult sresult = roles.searchRoles(filter);
    if ( sresult.getState() == ISearchResult.SEARCH_RESULT_OK )
         while(sresult.hasNext())
         String id = (String)sresult.next();
         IRole role = UMFactory.getRoleFactory().getMutableRole(id);
         Iterator i = role.getUserMembers(false);
         while (i.hasNext())
                         String uid = (String)i.next();
              IUser user = users.getUser(uid);
              role.removeUserMember(user.getUniqueName());
              System.out.println("Removed user: " + user.getUniqueName() + " from role: " + role.getDisplayName());
         role.save();
         role.commit();
    catch (Exception e)
         manager.reportException(new WDNonFatalException(e), false);

    Solved it!
    It needs the FQDN User ID...

  • INDIA - Subcontract Process- Creation of Excise Invoice T-code J1IS

    Dear All,
    We are placing most of the purchase orders on subcontractor labour basis & raw material steel is being supplied by us to subcontractor. Transfer posting Movement type 311. After creation of material document Excise Invoice is created using T-code J1IS. Finsidhed job directly despatched to site.
    At present for raw material despatches to vendor from works, Assessable value is derived on by the basis of GR No. printed on the transfer posting delivery note. A person preparing excise invoice retrieves the relevant GR works out the Assessable value and then enters the value manually. This process is repeated for as any many line items that a particular delivery note consists. This is resulting in delay of creating excise invoice. In our case we have only Project stock & moving average price is being update automatically in Table QBEW .
    Now our requirement is that The value should be auto derived from QBEW Table and captured while creating excise invoice. T-code J1IS.
    Please inform if this is possible & guide us.

    In normal circumstances, it is not possible to generate an excise invoice for credit / debit notes in SAP.  Moreover, DLFC excise invoice type can be generated only if delivery is involved.  So in order to achieve the requirement (and fool the system :-|), you can try by creating a delivery with an item category as TAX so that it will not check for stock, do PGI and invoice (credit memo) can be generated  referencing credit memo request.  Finally, try to generate an excise invoice via J1IIN
    I have never tried this option and hence, its only a guess that this should work.  Update after testing.
    thanks
    G. Lakshmipathi
    Edited by: Lakshmipathi on Jul 26, 2011 2:07 PM

  • Issue encountered when Login as sysdba role using Thin Oracle JDBC Driver

    Hello all,
    we are now considering to use Thin oracle JDBC driver to create database in our project, but we met one issue when we tried to connect to oracle as sysdba role using Thin driver, and it throws java.sql.SQLException: Io Exception: SO Exception was generated, I have found some tips on oracle jdbc website and it says :
    How do I connect as SYSDBA or SYSOPER?
    The only way to do this is to use the Properties object when connecting, rather than specifying the username and password as strings. Put the username into the "user" property, and the password into the "password" property. Then, put the mode into the "internal_logon" property. Something like the following:
    Properties props = new Properties();
    props.put("user", "scott");
    props.put("password", "tiger");
    props.put("internal_logon", "sysoper");
    Connection conn = DriverManager.getConnection (url, props);
    When connecting as SYSDBA or SYSOPER using the Thin driver, the RDBMS must be configured to use a password file. See "Creating and Maintaining a Password File" in the "Oracle Database Administrator's Guide".
    So, i did execute orapwd command to create a password file and also set remote_login_passwordfile=execlusive in my initxxx.ora initial parameter file, however, when i tried to connect, it failed.
    private static void createEmsdbDatabase(){
    String url = "jdbc:oracle:thin:@localhost:1521:";
    StringBuffer sqlStatement = new StringBuffer();
    sqlStatement.append("create database xxx");
    sqlStatement.append("maxdatafiles 254 ");
    sqlStatement.append("maxinstances 8 ");
    sqlStatement.append("maxlogfiles 32 ");
    sqlStatement.append("character set UTF8 ");
    sqlStatement.append("national character set UTF8 ");
    sqlStatement.append("DATAFILE 'c:\\oracle\\xxx\\system01.dbf' SIZE 18M REUSE ");
    sqlStatement.append("logfile 'c:\\oracle\\xxx\\redo01.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo02.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo03.log' SIZE 2M REUSE ");
    try {
    DriverManager.registerDriver(new OracleDriver());
    Properties props = new Properties();
    props.put("user", "sys");
    props.put("password", "password");
    props.put("database","xxx");
    props.put("internal_logon", "sysdba");
    Connection conn = DriverManager.getConnection(url, props);
    Statement statement = conn.createStatement();
    statement.executeUpdate(sqlStatement.toString());
    statement.close();
    conn.close();
    } catch (SQLException e) {
    e.printStackTrace();
    But what made me puzzled a lot is if i use OCI driver, it did work great, why??? guys, anybody knows, please give me some tips, thanks in advance.
    regards,
    Kaixuan @ Shanghai

    clarify my question in detail:
    Step 1 : create password file using orapwd command
    Step 2 : create database instance using oradim command
    Step 3 : login using sys as sysdba to startup database, e.g startup nomount pfile='...\initxxx.ora'
    Step 4 : create database.
    java code showing below:
    private static void createEmsdbDatabase(){
    String url = "jdbc:oracle:thin:@localhost:1521:";
    StringBuffer sqlStatement = new StringBuffer();
    sqlStatement.append("create database xxx ");
    sqlStatement.append("maxdatafiles 254 ");
    sqlStatement.append("maxinstances 8 ");
    sqlStatement.append("maxlogfiles 32 ");
    sqlStatement.append("character set UTF8 ");
    sqlStatement.append("national character set UTF8 ");
    sqlStatement.append("DATAFILE 'c:\\oracle\\xxx\\system01.dbf' SIZE 18M REUSE ");
    sqlStatement.append("logfile 'c:\\oracle\\xxx\\redo01.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo02.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo03.log' SIZE 2M REUSE ");
    try {
    DriverManager.registerDriver(new OracleDriver());
    Properties props = new Properties();
    props.put("user", "sys");
    props.put("password", "password");
    props.put("database","xxx");
    props.put("internal_logon", "sysdba");
    Connection conn = DriverManager.getConnection(url, props);
    Statement statement = conn.createStatement();
    statement.executeUpdate(sqlStatement.toString());
    statement.close();
    conn.close();
    } catch (SQLException e) {
    e.printStackTrace();
    issue was met here, when i tried to login as sysdba using sys, and in my java code, i use Thin driver, it then thrus exception, but when OCI driver is used, it works great, i don't know why.
    that is, when i use "jdbc:oracle:oci8:@" as database URL and then properties.put("database","xxx"), it works great. but, when i use "jdbc:oracle:thin:@localhost:1521:" as database URL and then properties.put("database","xxx"), it failed. hopefully, i have clarified my question clearly. thanks.

  • What is an easy web-page creation program for use with MacBook Pro?

    Can anyone suggest an easy web-page creation program for use with MacBook Pro?  I have used FrontPage with my PC, but am changing to a MacBook Pro.

    It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
    If you are more of a designer, try these:
    RapidWeaver
    Freeway Pro
    Muse
    If you want to write web page code, try these:
    Coda
    BBEdit
    Dreamweaver
    If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
    No program at all.
    Instead, sign up with a web site company like:
    WordPress.com (hosted by them) or WordPress.org (hosted on your server)
    Squarespace
    Wix
    The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
    Already designed to the latest web standards
    Already designed to resist hackers
    Already designed to work on all browsers
    Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
    Already designed for accessibility
    Already designed for Search Engine Optimization so that your page will be found on Google
    Already designed with social media links built in if you want
    It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app.

Maybe you are looking for