BDC on MM02 with user view

Hi all,
I am performing BDC on MM02 to change MRP2 data.
I have used SELECTION_VIEWS_FIND to get the correct view. It works fine on my screen as i have access to all the views in MM02.
But when the user runs, it errors out as the user is restricted to only MRP view.
How do i get my BDC working based on user view?
Points will rewarded for helpful ans

Hi Ramesh babu, user has mrp view and my program also uses mrp view.
But the problem is my program when uses the FM  SELECTION_VIEWS_FIND, it considers almost all view and the MRP 2 view is at 12 position say, but since user has only mrp view MRP 2 is at position 2 and hence mismatch. Now how do i get the current position of view in my program based on the user view?

Similar Messages

  • Open Transaction MM01/MM02 with multiple views using  CALL TRANSACTION

    Hi All,
    I want to open MM01/MM02 with multiple views using call transaction but in the parameter ID for Views (MMX) I can pass status of only one View.
      SET PARAMETER ID 'MAT' FIELD v_mat.
      SET PARAMETER ID 'VKO' FIELD ' '.
      SET PARAMETER ID 'MTA' FIELD IT_MOFF-MTART.
      SET PARAMETER ID 'MTP' FIELD IT_MOFF-MBRSH.
      SET PARAMETER ID 'VTW' FIELD ' '.
      SET PARAMETER ID 'BWT' FIELD ' '.
      SET PARAMETER ID 'LGT' FIELD ' '.
      SET PARAMETER ID 'MXX' FIELD 'K'.     "Sales View
      SET PARAMETER ID 'MM5' FIELD ' '.
      CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN
    Please suggest.
    Regards,
    Divya

    I do not exactly understand what you mean, but what i already did:
    - I checked that the fields are from the same type.
    - KUNNR is initialized! I already had a look to the debugger, that's why i'm posting this in this forum.
    any more comments on this ?
    maybe i have to change anything in the z-transaction. Btw, this is what the parameter looks like in the transaction:
    SELECTION-SCREEN BEGIN OF BLOCK Debitoren WITH FRAME TITLE text-001.
      PARAMETERS pkunnr type kna1-kunnr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK Debitoren.
    Edited by: Sven Delangle on Sep 3, 2010 2:42 PM

  • Bdc for MM01 with classification view

    Hi all,
    I need to create materials using mm01 with classification view. since there is no bapi supporting this view, i am ding by bdc.
    The problem is in classification view once i give the class type and name a screen pops with caption
    characteristic value assignment, but theere are no charateristics displayed - wat values do i have to enter here >
    once i leave this screen the characteristics show up one after the other and i can load the details. but then while tryin to save error comes staing incnsisitent value assigned. wat do i ener in the intermediate screen t avoid this error.
    thanks

    hi when you are creating a classification view with characteristics.. you need to do all at once... you cannot modify..
    all you can do is delete the whole view and create with all the changed again.. I  dont memorize the BAPI .. but you have BAPIdelete.. BAPIadd..

  • How to do BDC in mm02 ?

    How to do BDC in mm02 ? as different materials have different view.

    hi,
    refer to the threads.
    mm01/mm02 different views, bdc
    BDC on MM02 with user view
    regards,
    srelakshmi

  • BPM Workspace User view related issue

    PROBLEM SUMMARY_
    Unable to see filtering options like SEARCH, ASSIGNEE and STATE in User View, I am able to see this in Generic Inbox of BPM workspace
    DETAILED DESCRIPTION_
    I am new to BPM & need some assistance on below scenario-
    TASKS INVOLVED-*
    My BPM process contains 2 tasks
    1.     Initiator task-[Part of Requester role in my JDev Swim lane]
    2.     User Task-To review the request-[Part of Reviewer role in my JDev Swim lane]
    SCENARIO-+
    Flow would be something like, requester enters details in request message & says submit. If request message length is less than 6 characters a review would be required & therefore process flow would go to reviewer task. Reviewer can Approve or Reject the request, if he approves the process will write the request message contents to a file, if the reviewer Rejects the request, requester task would be created again so as to ask requester to enter a message of length>6.
    If entered request message is having length greater than 6, no review would be required. It will be a direct file write.
    CHALLENGE-+
    The challenge is each of these tasks –Initiator task & Review task would be created with DIFFERENT task numbers in BPM workspace, which I do NOT want. I want the Requester tasks task number to be propagated to Reviewer task and I would want to populate this as task number (May be under different column, say Request Id) of Reviewer task as well.
    After reading Oracle BPM docs, I studied that this can achieved using Human tasks-Mapped variable concept.
    I used protected mapped variable/flex variable:*Request Id* in both the above tasks to achieve this.
    PROBLEM-*
    Problem is in BPM workspace’s user view, here we go-
    I created a user view:*HelloWorld* to display the task details, the columns I want are the default columns+Column for mapped attribute:*Request Id*.
    Now even though the Request Id column is populated as expected, I cannot filter the View entries based on Assignee, State or perform any kind of other searches.
    I understand that User views are built based basically on certain filters itself. But post the view creation if user has to make a search-say based on Mapped attribute:*Request Id* in this case, he won’t be able to do so.
    This defeats the entire purpose of Mapped attributes. Oracle document says (check the last bullet point)-
    +"Human workflow mapped attributes (formerly referred to as flex fields) store and query use case-specific custom attributes. These custom attributes typically come from the task payload values. Storing custom attributes in mapped attributes provides the following benefits:+
    +•     They can be displayed as a column in the task listing+
    +•     They can filter tasks in custom views and advanced searches+
    *+•     They can be used for a keyword-based search"+*
    So is this a bug with user views in workspace?
    One more thing that I would like to add-Reason behind using Custom user views is-
    1)     Generic Inbox of BPM Workspace does not give option to make the mapped attribute get displayed/Searched
    2)     I want to customize the Tasklist.
    Edited by: user12183391 on Oct 3, 2011 9:57 PM

    Oh well...
    It seems there's a bug with the XE Database... Sometimes it freezes some components and the SOA Plataform goes crazy.
    Simple system reboot solved.

  • Change user's OU with punctuation mark doesn't work by Rename User View

    Hi,
    I have problem with moving user between OU by Rename User View when punctuation mark in name of OU is used.
    I have own WF that assign user to specific OU depending on value of Select component. When value of this component is changed (against previous value) I call Rename View, that assign user to new OU. For OU without punctuation mark Rename View works OK.
    After finishing WF with punctuation mark in OU this Error appers:
    java.lang.RuntimeException: There is no such object on the server.
    But creating new AD account (by role assignment) in OU with punctuation work OK. In select component is rule that replace puctional character in correct form.
    Select component:
    <Field name='slctOrganizationalUnitUzivatele'>
                    <Display class='Select' action='true'>
                        <Property name='title' value='Nastavte organizacni jednotku:'/>
                        <Property name='allowedValues'>
                            <block>
                                <dolist name='zmena'>                             
                                    <invoke name='listResourceObjects' class='com.waveset.ui.FormUtil'>
                                        <invoke class='com.waveset.session.SessionFactory' name='getServerInternalContext' />
                                        <s>OrganizationalUnit</s>
                                        <s>AD</s>
                                        <null/>
                                        <s>false</s>
                                    </invoke>
                                     <rule name="RUL nahrada znaku">
                                        <argument name="inputString">
                                            <ref>zmena</ref>
                                        </argument>
                                        <argument name='hledanyRetezec'>
                                            <s>\,</s>
                                        </argument>
                                        <argument name='nahrazovaciRetezec'>
                                            <s>\, </s>
                                        </argument>
                                    </rule>                              
                                 </dolist>
                            </block>
                        </Property>
                        <Property name='sorted'>
                            <Boolean>true</Boolean>
                        </Property>
                    </Display>
                    <Default>
                        <upcase>
                            <ref>user.accounts[AD].ad_container</ref>
                        </upcase>
                    </Default>
                </Field>
    WF-Rename User
    <Activity id='10' name='renameUzivatele'>
            <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkoutView'/>
              <Argument name='type' value='RenameUser'/>
              <Argument name='id' value='$(user.waveset.accountId)'/>
              <Argument name='authorized' value='true'/>
              <Return from='WF_ACTION_ERROR' to='error'/>
              <Return from='view' to='renameView'/>
            </Action>
            <Action id='1'>
              <expression>
                <block>
                  <set name='renameView.accounts[AD].identity'>
                    <ref>newDNrecord</ref>
                  </set>
                  <set name='renameView.resourceAccounts.currentResourceAccounts[AD].identity'>
                    <ref>newDNrecord</ref>
                  </set>
                  <set name='renameView.resourceAccounts.currentResourceAccounts[AD].selected'>
                    <s>true</s>
                  </set>
                  <set name='user.global.OrganizationalUnit'>
                    <ref>slctOrganizationalUnitUzivatele</ref>
                  </set>             
                </block>
              </expression>
            </Action>
            <Action id='2' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkinView'/>
              <Argument name='view' value='$(renameView)'/>
              <Argument name='authorized' value='true'/>
            </Action>
            <Transition to='nastaveniPristupu-overeni'/>
            <WorkflowEditor x='193' y='343'/>
          </Activity>
    <set name='newDNrecord'>
                    <concat>
                      <s>CN=</s>
                      <ref>user.global.fullname</ref>
                      <s>,</s>
                      <ref>slctOrganizationalUnitUzivatele</ref>
                    </concat>
                  </set>Do you have any ideas?
    Thanks Petr

    Hi,
    I discovered following:
    - if name of OU in AD is without space (e.g. test,sample) so DN record is test\,sample and user is moved into this OU.
    - if name of OU in AD is with space (e.g. test, sample) so DN record is still test\,sample and user isn't moved.
    So problem is with empty space. How can I preserve space in DN name? I found something in documentation but I doesn't work for me.
    +Special Characters in FieldValues
    If you have a field value with a comma (,) or double quote (") character, or you want to preserve leading or trailing spaces, you must embed your field value within a pair of double quotes ("field_value"). You then need to replace double quotes in the field value with two double quote (") characters. For example, "John ""Johnny"" Smith" results in a field value of John "Johnny" Smith. +
    (from IDM Business Administrator's Guide, p.77)
    Guided this information I put value of slctOrganizationalUnitUzivatele into "". But this didn't work. Is good idea to have space in DN?
    Thanks for help.
    Petr
    Edited by: petrklinkovsky on Sep 10, 2009 5:06 AM

  • View Object with User Defined Type input

    I am trying to use a View Object with a query that requires a user defined object as an input parameter.
    I have the query working with a PreparedStatement, but would like to use a View Object.
    When I use the PreparedStatement, I prepare the user defined type data like this:
    // get the data into an object array
    Object[] wSRecObjArr = wSRec.getObjectArray();
    // set up rec descriptor
    StructDescriptor WSRecDescriptor = StructDescriptor.createDescriptor("WS_REC",conn);
    // populate the record struct
    STRUCT wSRecStruct = new STRUCT(WSRecDescriptor,conn,wSRecObjArr);
    Then I can use this in the PreparedStatement like this:
    OraclePreparedStatement stat = null;
    ResultSet rs = null;
    stat = (OraclePreparedStatement)conn.prepareStatement("Select test_pkg.test_function(?) FROM DUAL");
    stat.setSTRUCT(1, wSRecStruct);
    rs = stat.executeQuery();
    I would like to do the same process with a View Object instead of the PreparedStatement.
    My question is "How do I create the input objects"?
    I obtain the View Object from the Application Module using findViewObject(). I don't actually have a connection object to pass into the StructDescriptor.createDescriptor method.
    I have tried just using Java Object Arrays (Object[]) to pass the data, but that gave an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    Any help or pointers are greatly appreciated.
    Thank you.
    Edited by: 942120 on May 1, 2013 8:45 AM
    Edited by: 942120 on May 1, 2013 8:46 AM
    Edited by: 942120 on May 1, 2013 9:05 AM
    Edited by: 942120 on May 1, 2013 9:06 AM

    Custom domains are the way to go.
    When I try to pass custom domains that represent my user defined types - it works.
    However, one of the functions requires a table of a user defined type be passed in.
    I tried creating a domain of the table type. It forces me to add a field during creation (in JDEV), so I tried adding a field of type Array of Element of the domain representing the user defined type.
    I populate the table by setting the field I created, but the table is empty in PL/SQL (TEST_TAB.COUNT = 0).
    I also tried passing the oracle.jbo.domain.Array object, but that produced an error:
    java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call
    I also tried passing Object[], but that produced an error:
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    How do I properly create, and pass an domain that represents a table of a user defined type?
    When I use a OraclePreparedStatement, I can pass a oracle.sql.ARRAY using stat.setARRAY.
    Thank you for the help you have provided, and any future advice.
    JDEV 10.1.2.3
    JDBC 10.2.0.5
    Edited by: 942120 on May 13, 2013 7:13 AM
    Edited by: 942120 on May 13, 2013 7:16 AM

  • How can the info block be assigned with the view and assign view to users.

    Dear Friends,
    Anyone could plz tell me how can the info block be assigned with the view and assign view to users.  Also how can the info block in sale summary be assigned with a view and how to assign this view for user.
    Regards,
    Ashima

    Hi,
    To define view and to make it default
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Define Reporting Views (Tcode:OVCD).
    To assign default user to the view.
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Default View To User (Tcode:OVCC).
    To assign Elements of SAPScript "SD-SALES-SUMMARY" to information Blocks To A View use
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Information Blocks To A View (Tcode:OVCB).

  • How to deliver MM02 to user with only Bin Location editable.

    My user wishes to have access to change only the Bin Location field in MM02. How can we achieve this? or in other words how can we deliver MM02 to user with only the Bin Location field editable.
    My basis guy sees a possibility if we can some how provide the authorization objects of all the fields of MM02.Shall that be a practical approach. if yes, what is the way of finding the authorization objects?
    Regards,
    Alok.

    Hi,
    You can create a transaction variant in SHD0 for MM02.
    [Transaction variants|http://help.sap.com/saphelp_nw70/helpdata/en/7d/f639f8015111d396480000e82de14a/content.htm] simplify transaction flow by:
    -Inserting default values in fields
    -Hiding and changing the ready for input status of fields
    -Hiding and changing the attributes of table control columns
    -Hiding individual menu functions
    -Hiding entire screens
    Transaction variants are actually made up of a series of screen variants. The field values and field attributes for each screen in a transaction variant are stored in screen variants. Each variant is assigned to a transaction. Variants may, however, contain values for screens in multiple transactions, if transaction flow makes this necessary. The transaction the variant is assigned to serves as its initial transaction, whenever you start the variant.
    Both client-specific and cross-client transaction variants exist. Screen variants are always cross-client; they may, however, be assigned to a client-specific transaction.
    A specific namespace has been designated for cross-client transaction variants and screen variants and they are both automatically attached to the Change and Transport System. Client-specific transaction variants can be transported manually.
    Transaction and screen variants may be created for all dialog and reporting transactions. However, there are certain restrictions that apply to their use, depending on how their corresponding transactions have been realized internally.
    Transaction variants may not be created for transactions already containing pre-defined parameters (parameter transactions and variant transactions).
    The following sections contain additional information on how to create and maintain transaction variants:
    Maintenance
    Additional Functions
    Transport
    Regards,
    Srilatha.

  • Weblogic myrealm user not allowed with name "viewer"

    Hi,
    I am trying to create a user(from weblogic console) in myrealm with name "viewer" and I see that I am not allowed but I don't get any error.
    When I am creating it programatically from a java program and assign it to a role called "Viewer", when connecting to my application using this "viewer" username the only rolse detected by my application are authenticated-role and anonymous-role. The "Viewer" role is not seen.
    Are there any restricted words that can be used for a user in weblogic myrealm?
    Thanks
    Regards Corneliu

    Hi,
    Regarding Transactions , the following link can helpful to you .
    Regards,
    Prasanna Yalam

  • ALV view : Problem with user defined views

    Dear Experts,
    We are facing a problem pertaining to user defined views for a ALV table that we have in SAP eRecruiting application in webdynpro ABAP. The problem is as follows.
    There is a candidate application ABC & only ONE person can edit this at a time.In this application ABC there is a ALV table.
    If the user clicks on this application & navigates to the ALV,this ABC application is in normal/edit mode(no one else has opened this ). So, the user can make changes in ABC. In the ALV, he can click on the 'settings 'button and save the STANDARD view as his own user defined view(by adding or removing columns).
    If the user opens the application ABC in display mode(implying that someone else has alraedy opened ABC for editing), when i navigate to the same ALV,the user CANNOT see the views which were saved in the edit mode.Only the standard view is displayed. The user however has the option to again freshly save a view.
    The views created by a user for this ALV should be seen irrespective of the application being opened in normal or display mode.
    To add to the confusion, this problem is occuring only in some systems & not in others. There is atleast one system where the views are displayed correctly to the user.
    On debugging, the table wdy_conf_user has config ids as different where the user views are stored separately for display & edit mode.
    In systems where the user views are displayed correctly, the config id is one & the same ensuring that the user can see all his views irrespective of the mode of the application.
    Any thoughts on how we can rectify this?
    sorry for the long & tedious explanation
    Thanks in advance,
    Sowmya

    See
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        return {$inputtype}
                     local:test_function("1","2")' returning content) o from dual
    Error at line 5
    ORA-19114: error during parsing the XQuery expression:
    LPX-00801: XQuery syntax error at '{'
    3                       return {$inputtype}
    -                              ^
    michaels>  select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?      
                        $inputtype
                     local:test_function("1","2")' returning content) o from dual
    O   
    2   
    1 row selected.

  • BDC FOR MM02

    Hi Friends,
    i want to write a BDC FOR MM02 T.CODE AT PLANT LEVEL AND METERIAL LEVEL.
    I WANT UPLOAD THE BELOW FEILDS DATA :
    THE FIELDS THAT I WANT UPLOAD IS EISBE(SAFETY STOCK) , MAABC(ABC INDICATOR)
    AND WZEIT(LEAD TIME).....AT PLANT LEVEL AND METERIAL LEVEL.
    PLS HELP ME.... IT IS AN URGENT.
    REGARDS,

    because with LSMW , you can standard program RMDATIND (direct input ==> faster than batch input.
    In step 1 : you select standard program (OBject 0020 method 0000)
    In step 2 you define source structure ZSRC_MARA
    In step 3 you list the fields : MATNR, WERKS, MAABC, MINBE
    In step 4 you make the link of your source struture to BGR00, BMM00, BMMH1
    In step 5 you map your fields + BMM00-XEID1 ( you have to flag the views you consider).
    Finished from developpement side
    DAvid

  • BDC for MM02 - Quality management

    Hi Friends,
    I need to create BDC program for MM02 with Quality Management View.
    My problem is with the sequence of the QM view in MM02 for different material types as per with recording.
    Kindly suggest me to resolve the issue.
    Thanks & Regards,
    S.Suresh
    Edited by: The Rock on Nov 7, 2011 1:43 PM

    Hi S.Suresh,
    I would simply read table QMAT to check if material/plant has Inspection Type '01'.
    Then, in case Inspection Type needs to be created, just call the BAPI_MATINSPCTRL_SAVEREPLICA FM with structure INSPECTIONCTRL properly filled-in.
    If successful, then remember to call BAPI_TRANSACTION_COMMIT.
    Hope this could help.
    Bye,
    Flavio

  • Master-detail with dynamic view object

    How can you create a view link with a view object that is dynamic? I have created a master-detail relationship on a UIX page. I change the master view object at runtime using a view definition and SQL and then I bind the view object to an iterator on a UIX page. I need the new dynamic view object to maintain the link between the detail view object. Is this possible?
    The reason why I have to change the view object at runtime is because I am implementing a search module and the tables in the from clause can be modified at runtime so I need to have a dynamic view object.
    Thanks,
    Sanjay

    After playing around with ViewObjectImpl's setQuery() method some more I found out that this solution might not work for me due to the following reason: when the user tries to sort a column in the result table, the original contents of the view object get executed instead of the run time query.
    <p>
    I would like to go back to my original solution that included creating a view definition based on the runtime query and then creating a view object from that which I bind to the RowSetIterator. The missing piece to the master-detail functionality is with the detail Iterator being in sync with the master. I have tried the following but I get a ClassCastException <p>
    DCIteratorBinding detailBinding = ctx.getBindingContainer().findIteratorBinding("DetailIterator");
    detailBinding.getViewObject().<b>setMasterRowSetIterator</b>(masterBinding.getRowSetIterator());
    <p>
    here is the relevant stack trace:
    java.lang.ClassCastException
    at oracle.jbo.client.remote.ViewUsageImpl.getImplObject(ViewUsageImpl.java:1829)
    at oracle.jbo.client.remote.RowSetImpl.setMasterRowSetIterator(RowSetImpl.java:512)
    at oracle.jbo.client.remote.ViewUsageImpl.setMasterRowSetIterator(ViewUsageImpl.java:1147)
    at oracle.jbo.common.ws.WSViewObjectImpl.setMasterRowSetIterator(WSViewObjectImpl.java:1005)

  • How to Get Most Current User View Before Checking In.

    Hi,
    We have several custom workflows which users can start from end-user menu and have some resource accounts created/modified after approvals.
    User view is checked out once at the beginning of each workflow, then some user attributes are modified through forms and user view is checked in with new attributes at the end.
    If any user starts a workflow (say W2) before completion of another workflow (say W1) he started before, and W1 is completed when W2 is waiting for approvals or etc., W2 completely discards changes made to user view through W1 since it has already checked out the user view before.
    If I checkout the user once more just before checkin, I'm able to get a current user view but this time changes made through forms used in the current workflow are lost.
    What's the best way, to get an updated user view of the user without overwriting any changes made out of the running workflow and losing form data?
    Regards,
    Mehtap.

    In a situation like this, you should probably change the front end to store the changes in workflow variables instead of using the view directly. Then, post approval, you checkout the view and apply the changes. I've used this approach to perform changes on large numbers of users (kind of like a bulk action, only more reliable).
    Alternatively, you can checkout the user object at the beginning of the workflow, and this will prevent your race condition by putting a lock on it. This will obviously cause problems (for you) if your users expect to be able to do multiple changes simultaneously. Don't try this approach if an angry mob will storm your cubicle -- IDM coders are hard to come by.
    Jason

Maybe you are looking for

  • Errors between Mail 5 inbox and Server inbox on the Exchange Server

    Hi, I upgraded to Lion recently and it seems that the Mail application struggles with the Exchange interface (although it was already the case for Snow Leopard). Bottom line there are some email messages in my Mail inbox, which in principle mirrors t

  • How can I get the path name and rename it?

    I Hope someone who knows more about automator than I can help me out here. What I'm trying to do is get the path file name, while also changing part of it. Here is my example: I can get the path name with this "Get Path" script I found http://automat

  • Where will Skype for Web be in Skype Community ?

    I cant login on my Mac  and my collaborators are all on Skype.   How to get invited for Skype Web Beta ?

  • Why is the photo only black in Edit mode with iPhoto 11?

    Why is the photo only Black in Edit mode? Everything works fine, except when I try to edit a photo, it shows as only Black. I have tried every fix talked about on this forum, and some others - nothing fixes it. Is this a Feature ? or is it a bug that

  • Mini's Play/Pause Button

    Hello I was wondering if anyone else has had such an issue. It's not a major problem but it does bug me sometimes. I have a 2nd generation Ipod Mini that's still under warranty. I usually turn off my Ipod by pressing and holding down the play/pause b