Add Company Code to customized extractor (User delegation task)

Hello guys,
Currently we have one report "Delegation" of Authority" that list all the delegations of authorizations among users for a certain period of time. These delegations of authorizations are related to the approval tasks using workflows.
The report is done one the top of one Z* infoObject and data is brought from ECC by a Z* extractor.
This extractor is database view that uses join conditions between 3 tables. The used tables are: SWWUSERWI (Current Work Items Assigned to a User), SWWWIHEAD (Workflow Runtime: Header Table for All Work Item Types) and HRUS_D2 (User Substituted by User).
Due to a new requirement, it is necessary to add to the report the company code of the users (the one who delegates and the one who receives).
The dificulty I'm facing is to find a table that has the company code and that I can link (join) with one of the previous tables.
I have tried with table PA0001 (HR Master Record: Infotype 0001 (Org. Assignment)) where I have the company code of each person, but I cannot link this table to any of the other 3. I have checked also table DFKKWLI (Work Items) but it is not being maintained...
Does anyone has tips that might help me?
I would really appreciate!
Thanks,
Andreia

Hi Rani,
I need more information:
1. Have u copied entire module pool "SAPMKPT2" which is main programe for KP90.
2. You want to set the controlling area? for that u have to call "SAPLSPO4" program and Screen Number "0300".
I think you mostly want to set the controlling area first and the "Delete Planned Costs"...please answer.
Hope this may clear your idea too..
Thanks,
Chetan Shah

Similar Messages

  • User Exit for KP90 to add Company Code

    Hi Experts,
    I need to add company code to the selection criteria of the KP90 transaction
    and thereby  clear plan data by company code.
    Please let me know the User Exit for the same or the way i should search for one.
    Or shall i instead create a Z program to meet the above requirement.
    Please help.

    Go to SE80 - choose program - SAPMV45A - Screen number 8309 - this is the screen exit to add fields in Additional data b
    You can write your own code for this screen and Try to use other user exits in SAPMV45A program and make sure you use transaction type or Sy-Tcode as the same program is used for quote and sales orders tooo
    Good luck

  • How to map company code for customer master in CRM

    Dear CRM Experts,
    The scenario is ,Customer Master is created in SAP CRM 6.0 and it flows to ECC 6.0 . After replicating the data to ecc i am manually assinging company code to customer master.Is there any option to map company code to crm customer master level.
    Regards
    Ashwin

    Dear All,
    The above requirement was address by Development.

  • How to add company code data to BP in SAP CRM

    Hi All
    I have a problem replicating BP from CRM to R3,the error coming is "Fill in the required entry fields".
    While debugging the error i came to know that Company Code data is not given from CRM side which is mandatory in R3.
    Actually the Company code data is kept mandatory at ABAP level due to the Client requirement.
    Now how can i add the company code data to BP so that this errors is resolved.As far as my knowledge goes there is no provisions for company code data in CRM ,now even if we keep this company code data optional in R3 ,this error is coming.
    Please suggest the way out.
    Any help will be highly appreciated.
    Regards
    Ashish

    Hi there
    Thanks for the reply,yeah i understand that there is no company code concept in CRM system.
    so,we mean by Middleware exit is the user exit at R3 side,that i understand too.
    But here scenario is different in the case that customer is not getting replicated due to the company code being kept mandatory at ABAP level in R3.
    Actually client requires the company code data to be mandatory in R3 so that customer id does not get generated in R3 without giving the company code info.
    Now due to the mandatory check on company code at ABAP level ,what happening is that we are not able to replicate the BP info to R3 because if that check was not there we would have at least pass on the BP data except the company code  and company code info would have been given in R3 itself.
    So,i believe the way out is to remove that check and place a user exit in R3 so that at least CRM data is replicated and company code will come automatically.
    Hope this will help me,if you have any better suggestion then please provide the same.
    Regards
    Ashish

  • How to determine which company code a customer is assigned

    hi
    anybody knows how a customer is connected to a company code
    i know its connected to several company codes but i want to know the original company code

    Hi
    Anjali's question sounds valid. As per my understanding we cannot Create a customer many times. The customer will be created only once (say Customer 1000) and the same existing customer will be extended to other company codes and for other sales areas based on the requirement. The company code and the sales area details in which the customer was initially created should be traceable.
    But I donot understand the reason for looking for these details.It will give more clarity on the requirement if the reason behind this requirement is also posted by Anjali.
    Thanks,
    Ravi

  • Report GR55 - add company codes

    Report GR55...  Hello !  the company codes in my company filed are missing, how knows how to add the company codes in my reports?
    the layout is not good now?
    Thank you !

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost your discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Unable to enter company code in Customer ERP UI

    Hello Experts,
    I am trying to create a customer CR using ERP UI and  I am unable to enter the company code in the UI screen . The company code theme in the UI is greyed out and there is no fields to fill out . Is there any settings I need to make in UI to make the company code theme appear with the fields.

    Hi Aravind,
    there are a few issues with the ABAP Web Dynpro Rendering that occur in basis release 7.40 (meaning in EhP7). Check (and most probably apply) SAP notes 2014019 and 2022343.
    Best regards
    Michael

  • Company codes assigned to a user not to a role

    Hi -
    We have set up our end user roles and now the requirement has come through that certain users should only have access to information based on company codes.  Is there a way to assign a user to either 1 or several company codes, but not to all; and to not have to change all of the roles that she has access to?
    Basically, assign a user to a specific company code, assign the necessary roles and have them only have access to that specific company codes information.
    Thanks,
    Margaret

    Hello Margaret,
    that is not possible.
    You have to restrict the roles to the specific company codes. Think about the technology of derived roles. That might be the easiest way to adapt the roles.
    Regards
    Rainer

  • Is there a way to add Paypal code for custom donate buttons?

    My website tracks donations for 4 separate programs via the item structured in the PayPal button.  Each button has its own graphic and, therefore, requires the <form action ... code from PayPal.  Needless to say the standard PayPal widget is not useful.  In addition, all of the 4 buttons are on the header on the Master pages (Main, Interior 1, and Interior 1).  Is there a way to incorporate the code from Paypal into the css pages?
    Thank you

    Thank you.  I did get it figured out and put all the links in each page.  I appreciate the help.
    Laura

  • Extend a customer to a new company code (IDoc DEBMAS06)

    Hi,
    I'm experienceing problems when I try to add company code data (segment E1KNB1M) and sales data (segment E1KNVVM) to an incoming IDoc of basic type DEBMAS06. The customer is to be extended into two company codes and correlating sales areas.
    I have implemented notes 802008 and 895885 and now I get the error message "No batch input data for screen SAPMF02D 0310" when I check in WE02.
    I have narrowed down the problem to billing details on sales data. The problem is that the field account assignment group (KNVV-KTGRD) is emptied on the last run of sales data processing. The value is there earlier but then vanishes mysteriously. Has anyone a tip on how to get around this problem?
    I would most apprechiate any help in this matter.
    Best regards,
    Fredrik Skild

    Hi Muthuraman Govi  and Sanjeev,
    in fact I can see in backend in transaction KS03 (show cost center) there in the F4s, which comp.code + controll area combinations are valid and have indeed cost centers assigned.
    So I have a new valid comp.code and a new valid cont.area.
    The new comp.code belongs to the new contr. area.
    In SRM I set the BUK attribute as described by Sanjeev (I had that already done). Still, if it is like you say, why do I get an error in EBP when trying to buy products from the new plant in the new company code...
    Is there any more config.work necessary in backend or SRM?
    kind regards, matthias

  • How to restrict the user id to a specific company code?

    Hi,
    I want to restrict a user id to access a specific company code only for both customizing and application data creation. This means that the user id can do customizing and create application data for that company code only and not for any other company codes.
    how can i do this?

    Hello Raja,
    You requirement of restricting users for application data can solved by adding the company code in the organization level button and the user will be restricted to mainatin application (transaction) data for the org element for which he is authorized for, if the transaction has objects which check company code.
    Customizing data authorization can be very tricky, as most of the customizing transactions are for maintaining customizing tables will not necessarily have an authorization check for org elements. In this case you may to manually insert a object called S_TABU_LIN alongwith S_TABU_DIS it will perform the job of restricting authorizations.
    In cases where the end user is accessing tables directly with SE16 S_TABU_DIS is the object that is check and maintained in PFCG.But,Such a restriction cannot be made with S_TABU_DIS alone. Fortunately SAP provides us with another authorization object S_TABU_LIN (Authorization for Organizational Unit), which can be used in conjunction with S_TABU_DIS to enforce such a restriction.
    This authorization object works only with Maintenance Views and Customizing tables. Also note that an Organization Criterion is a prerequisite for implementing the same
    A detailed step by step procedure to be followed is given below:
    1. The first step in implementation of line authorization is defining an Organization Criterion. For this we need to access the u201CSAP Reference IMGu201D customization page from SPRO transaction.
    2. From the IMG display screen select SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select the execute ( ) button for the u201CDefine Organization Criteriau201D.
    3. The resulting table display show all available Org Criteria values existing in the system. For our purposes we will create a new Org Criteria to suit our needs. Select the tab u201CNew Entriesu201D as shown below.
    4. Give an appropriate name starting with Y or Z for the new value. Note that a name starting with another letter will not be accepted by the SAP system. Click on u2018Saveu2019 button to save the newly created Org Criteria. This opens a new window asking for a Workbench Transport Request. This would be required so as to transport the new Line authorization restrictions further to the test and production systems.
    5. Now select the new Org Criterion u201CY_TESTu201D and double-click the u201CAttributesu201D tab as below to define the various Org Attributes.
    6. Provide the new Attribute name and Description for the same. Also fill the Authorization field value from the provided dropdown (1st Org Criterion Attribute u2026. 8th Org Criterion Attribute). The search help field is an optional field which can be filled if a search criterion exists or has been created earlier for the specific purpose. This field enables the u201CF4u201D when filling entries in the authorization object
    7. We already have a search help (C_T001) available, which provides as an F4 help the list of all available Company Codes in the system.
    Note that we can create up to 8 Org Attributes as per our requirements (by selecting u201CNew Entriesu201D tab), each corresponding to a column in the target table.
    8. Selecting the attributes link again will show us a list of all defined attributes and the authorization Field it will appear in. Now that we have defined the Attribute Field that we require, we need to associate each attribute to the corresponding Table Field in the target table.
    Select one of the attributes as below and double-click on the u201CTable Fieldsu201D button to define the field associations.
    9. Select the u201CNew Entriesu201D tab to create a new table field association.
    10. The View/table field must be filled with the target table which we need to control.
    11. The u201CField Nameu201D will require the field name of the target table which be linked with the specific Org Attribute. Performing an F4 on this field will display the list of all possible fields available in the View/table provided earlier. Here we will select the field name BUKRS (Company Code). Save the entries in the same workbench request created earlier.
    12. The next step would be to activate this new Org Criterion so that SAP now checks the authorization for S_TABU_LIN for every user
    13. In the u2018IMG displayu2019 go to SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select execute ( ) button for the u201CActivate Organization Criteriau201D.
    14. From the resulting customization screen tick the check-box for the Org Criterion that we have created. On saving the settings the system then asks for a Customizing Transport Request for further transport into test and development systems.
    15. Any user without this authorization will not be allowed in to the SM30 display/change screen for this table.
    16. In the role for which the S_TABU_DIS provides maintenance access for the table , we will now also need to maintain the object S_TABU_LIN.
    17. On selecting change button besides any authorization field you will need to select the Organization criterion which needs to be maintained here. Note that only one Org Criterion can be maintained in one instance of S_TABU_LIN object.

  • Create Customer at POS and upload to different company code

    Hi Experts
    Client Requirement is like this
    Two company codes are here e.g. company code BP01 and BP02
    BP01 has one store
    BP02  has three store
    Now Customer is create at POS Server at any store .
    here we can create customer with respect to any one company code
    Same customer want to  buy goods from both company code and can get rewards points
    question
    so cutomer has to extend in other company code and has to update to each POS SERVER which located in each store 
    how to handle this scenarion
    regards

    Hi Hanumant,
    Assuming if customer, buys some item from CCode BP02 regularly, then you can create the customer on the POS application (like SAP POS..), and append the POS Customer master (re-use any text field) with information of other company code where the customer wishes to deal with).
    The customer master will be passed using inbound idoc, on to the IS Retail Server in the HO.
    Now at HO level a the customer can be extended for multiple company code ..in this case BP01 manually or by an automated program, which will monitor the specific field (coming from the new customer master idoc from POS) , if it detects contents, it reads the same and extend the customer as per mentioned ccode.
    So next time onwards , using outbound doc , customer master can be updated to all locations for that customer. Similarly the loyality point, can be accumulated based on the purchases made per Ccode.
    Regards,
    Anirban Roy

  • Restrict users with the same company code

    Hi All,
      I have developed editable ALV which allows users to edit and delete records and save those changes in database.
    Input is Company Code , Document Number and Fiscal Year.
    Now I want to restrict multiple users trying to edit/delete records with same company code at a same time.
    Example:
    User A is editing records for company code 1250.
    If User B tries to access for same company code 1250 at the same time, it should return an
    error message saying “Table currently locked by User A”.
    and also want to restrict the records if multiple users are trying to edit/delete the same record at
    a same time,I should give an error message.
    Thanks,
    Arpita

    First perform some search on Lock Concept in online help (ABAP Programming (BC-ABA), The ABAP Programming Language, Saving Data Externally, Data Consistency, The SAP Lock Concept or The SAP Lock Concept (BC-CST-EQ), SAP Lock Concept)
    Then use or create thru SE11 a lock object for your table (keys must start with mandt + Bukrs, to not interfere with standard locks, e.g. EFBKPF, you may create your own z-structure and an associated lock object) and before reading data check the company code is not yet locked with ENQUEUE FM, release the lock is either implicit at end of transaction or triggered thru DEQUEUE FM or COMMIT/ROLLBACK WORK (depends also on your choice on _SCOPE Parameter value).
    Regards,
    Raymond

  • Customer and Company Codes

    Hi,
        I have a requirement where i need to have Customers along with the company code the customer belongs to. As far as 0customer and 0customer_Sales are concerned i cannot see any attributes of compnay codes in these infoobjects.
    Any suggestion how i can get customer along with the company code with any standard infoobject or otherwise??
    Best Regards,
    RK

    Hi,
       when i try to compound the standard infoobject is throwing an error,
    InfoObject 0CUSTOMER is referenced from 0BILLTOPRTY, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0COMPETITOR, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0DEBITOR, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0INT_CUST, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0PAYER, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0RT_CUSTPL, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0SHIP_TO, compounding cannot be changed
    InfoObject 0CUSTOMER is referenced from 0SOLD_TO, compounding cannot be changed
    Characteristic 0CUSTOMER is used as Attribute of 0APO_LOCNO, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0APO_RESNAM, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0BPARTNER, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0BP_GRP, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0FUND, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0GM_SPNSR, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0INSP_LOT, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Attribute of 0NOTIFICATN, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Navigation Attribute of 0BP_ACTIVIT, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used as Navigation Attribute of 0CRM_SOLDTO, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used in Communication Structure 0APO_LOCNO_ATTR, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used in Communication Structure 0CUSTOMER_ATTR, but characteristic 0COMP_CODE is not
    Characteristic 0CUSTOMER is used in Communication Structure 0CUSTOMER_TEXT, but characteristic 0COMP_CODE is not
    InfoObject 0CUSTOMER (or ref.) is used in data targets with data -> Error:
    Characteristic 0CUSTOMER: Compound or reference was changed
    InfoObject 0CUSTOMER being used in InfoCube ZZPCA_C01 (contains data)
    Pls suggest.
    Regards,
    RK

  • Users with Company Code

    Hi All,
    Can anybody please tell me the best possible way to find out the company code (Organisational Assignment) for Users without getting into each role and checking the Company code through the Organisational Assignment.
    Fo Eg: Suppose i have 10,000 Users in my Company and i need to check what company code has been assigned to each User.
    One way   -> is to first check all the roles in the User, then checking Organisational level Assigment for each role.
    Second way -> In SU01 -> Environment -> Organisational Asignment but not able to find aything from that.
    Revert if there is any other solution for this.
    Thanks & Regards

    You can check through SUIM -> Where used list -> Authorization values - > in Users -> Execute - > Authorization Object (F4 - to check company code object)  -> Entry Values (enter your company code value) and Execute.
    Cheers
    Shaji

Maybe you are looking for

  • Excel Download to ALV report

    Hi Guys, I’m facing a peculiar problem. When I try to download an ALV report in excel format using (list ->export -> local file-> soread sheet )I’m not able to download complete set of records. Same is happening with ws_download,  even though the int

  • Copy and Paste bugged in FCP 7??

    Is anyone else having problems with copying from one seq to another? Everytime i paste an item into my main seq it changes the name of my seq to the pasted item. Its doesnt stop me working just quite confusing and annoying..

  • Display becomes brigthly and stops working what can I do ?

    Hi, I´ve got a problem with my macbook. My display becomes brigthly and stops working. It happens every two minutes after you work with the macbook. If I change the position of the display its working again. Do you have any ideas to solve this proble

  • BAPI to change PLPO VGW01 (Setup Labour)

    Dear SAP Experts, Is there a BAPI to update the field VGW01(Setup Labour) on PLPO (Task list - operation/activity) table?

  • Visualization of the separation plane for the two-variable SVM case

    Hello, I have an training data set for binary classification task that contains only two variables. After building SVM model (with linear kernel) I want to visualize separation plane. After reading documentation I found that I can get variable weight