Structure operation

Hi ,
I have two structure of same type
Data:
xlfal  type lfal ,
ylfal  type lfal .
Now my requirement is to clear the all field values which are same in both structures and retain only those values which are distinct
please let me know if u have some function module

Hi,
try this:
FIELD-SYMBOLS: <fsx>, <fsy>.
do.
  ASSIGN COMPONENT sy-index OF STRUCTURE xlfal to <fsx>.
  if sy-subrc ne 0.
    exit.
  endif.
  ASSIGN COMPONENT sy-index OF STRUCTURE ylfal to <fsy>.
  if <fsx> eq <fsy>.
    clear: <fsx>, <fsy>.
  endif.
enddo.
Edited by: Jörg Wulf on Feb 22, 2010 4:02 PM

Similar Messages

  • Validation for Proj. structure

    Hi,
    I understand that there is a provision to create a validation under "Consistency Check project structure". If I create a validation here where shall I assign this (like if we create a Proj. defn or WBS validation, we can assign the same in the Proj. profile). I want this to be assigned in the similar way. 
    thanks in advance.

    Hi Vinvidh_1,
    You need to assign the validation at project profile.
    IMG-PS-Structures-Operative structures-WBS-Create Project profile (OPSA)
    Select the project profile and open it in Control tab tehre is a screen area Valication: Project definition and WBS elements Mention your validation in the required filed select Automatic Validation.
    Regards,
    Praveen

  • Network - print object overview

    hello!
    i tried to print the object overview in a network (CN22, menu network->print), but the menu-entry is not selectable.
    how could i print this overview - is there some customizing missing? the status of my network is already released ...
    thanks!
    matthias

    Hi,
    I just went through the same problem. Don't know if it is still open.
    In customizing under "Project System"->"Structures"->"Operative Structures"->"Network"->"Printing in Networks" you will find entry "Recommendations for printing and print control". There it is stated that the number of time tickets or number of confirmation slips entered for the activity is greater than zero.
    Check in transaction OPS0 if you have set the number of prints greater than zero in menu point "List control for transactions (double clic on the entry).

  • How do I find out which BADi is triggered in PS?

    Hello,
    I am new to SAP and this forum and probably have a really simple question.
    In transaction cj20n, PS, when I create a project and save it, how do I know which BADi is triggered when I save?
    Just wanted to say this forum is a great resource for developers!
    Thanks,
    Taki

    Hi T.Kobayashi,
    In general to find badi,you can go in respective functional area in SPRO and search for enhancements.
    And here for PS you go thru this navigation in your system
    SPRO->SAP IMG reference->SAP Customizing Implementation Guide->Project System->Structures->Operative Structures->WBS->Enhancements for project definition and WBS->Business Add-In(BUS 2001)

  • Error in Data Transfer : From CO-PA to SOP Flexible Planning

    Hi Friends
    I am working on a Scenario of Transferring CO-PA data to Flexible Planning, I am encountering few problems, I have done the followig steps, request you to check and get back to me..
    The following configuration steps are done with Example;
    Characteristic assignment
    u2022 Sales Organization
    u2022 Region
    u2022 Plant
    u2022 Material Number
    u2022 Material Group
    Key figure(s) assignment
    u2022 Sales Quantity
    Assignment: Information structure - operating concern
    S555 u2013 Z001
    Define activities Z1
    Mass Processing Job : ZSO-PA
    We are able to transfer data from CO-PA to standard SOP, But we tried for transfer to Flexible Planning SOP by creating Mass Processing Job setting as below configuration path.
    Production -> Sales & Operations Planning (SOP) ->Functions -> Mass Processing -> Transfer LIS / CO-PA
    After executing Job MC8G - Schedule, we checked in Tcode - MC8I u2013 Check, Status: Processed with errors, And also data are not displayed in Tcode : MC95 for Material & active version.
    We couldnu2019t find log for error status.
    What is the method / Procedure for transfer data to Flexible Planning SOP?
    Please get back to me.

    Dear,
    Status:            Processed with errors ok
    Activities checked:? what is the error message here like
       COPY
           Planning type in activity and job not identical
           Planning type of job:  SOPKAPAM
           Plng. type of activity:Z004PLAN
    When checking a mass processing job in SOP/flexible planning (Transaction MC8I), in the log error message "Activity and COPA profile have different planning versions?
    Or planned/actual indicator in the COPA profile?
    Version should be        A00
    Please check the MC8S. Then an Avtivity in MC8T
    after you create the job in MC8D with the acitivity you have defined for your info structure.
    After that check in MD62 for plan value.
    Regards,
    R.Brahmankar

  • Error occured in accounting message - Controlling cockpit

    Hi All,
    I have an item / Cproject and a project in PS linked to it. After the role requirement is done, system gives following messages in the PPM system.
    Error occurred in accounting - check the costing in the ERP system  Display Help
    Maintain an activity type for cost/revenue rate R1
    Maintain an activity type for cost/revenue rate ZB_ENG_S_TCAS
    For last 2 messages I know that the activity type assignment to cost/revenue rate is needed. But for first message when I go to correct the entry in controlling cockpit it gives a message - Enter a valid value for the settlement type.
    The settlement rule was created for PS project with settlement type FUL. Still this message is not getting cleared from the RPM system and from the controlling cockpit even after precessing it.
    Can any one please let me know what can be done to solve this?
    Regards,
    Gaurav

    Hi Yemi,
    Controlling cockpit is accessed to view the error details in the accounting integration. This can be accessed through two ways.
    1) In Project-->Accounting tab
    2) Through tcode - COCPCPR
    You can try the second method to view the error details.
    And coming back to your query on project profile config in PS, as Pramod said, by standard SAP delivers a standard profile in SAP PS for cProjects-->PS integration. You can find the same in the below SPRO path.
    Project System-->Structures-->Operative structure-->Work Breakdown structure(WBS)-->Create Project profile
    Project profile name : CPR0001
    This project profile is used when an automatic PS project is created through accounting integration.
    Hope this helps.
    Regards,
    Ravi

  • Queues and notifiers - please help?!

    Can someone explain to me how to effectively utilize queues and notifiers? I understand the fundamental difference between the two but I am having a difficult time establishing when I should use one over the other or how to utilize both of them at the same time.
    Essentially what I currently have is a master loop that contains (among other things) an event structure. The event structure contains controls which dictate when notifiers are sent and destroyed. The notifiers “turn on” other loops (all within the same sequence frame as the master loop). These other loops are used for various controls, data logging, etc. Within some of these “sub-loops” I would like to step through a sequence of events – this is where I’m having trouble.
    Here is what I would like to happen: When the user clicks a certain button, a notifier is sent to sub-loop-A and it begins to run. The user then selects from a pull-down menu one of a few different options. Depending on the option selected, a specific set of events occur (whose progress is dictated by both user interaction (pressing buttons) and successful events (data being fed back). I would then like the sequence to “reset” and allow the user to select another option from the same menu – I don’t want to exit all the way back out to the main loop and force the user to re-select sub-loop-A again. However, if from the front panel the user selects sub-loop-B I would like sub-loop-A to exit and sub-loop-B to begin running. I have attached a sample of the basic layout I have so far (in LV 8.2) – I apologize in advance – I’m still learning labVIEW and I’m probably not going about this in the most efficient manner.
    A couple other things to note – I’m trying avoid polling because speed is important. Also, the template I’ve attached is far from complete – it will require additional sub-loops and additional sequence loops (which I have been advised to use que-based state machines - which I'm also not familiar with).
    Any assistance you guys can provide would be great – examples, web links, etc.
    Thanks again!
    -Erik
    Attachments:
    LayoutExample.vi ‏72 KB

    I do see a problem in the operation in that if I hit the stop button, the inner loop of auto starts running like crazy.  I think it is because if the wait for notifier returns an error due to it getting destroyed when the stop button is hit, it still sends out the notifier as the default, which starts the default case structure operating and thus its inner loops.  And they don't stop.
    You should probably get the loops out of the default case.  Any case structure should have a default case that does nothing. 
    A better practice would be in the stop button case, send out a notifier that is for a specific exit case that tells all outer loops to stop.  Then destroy the notifiers.
    In your 4 loops, you have the stop button NOR'ed with the other condition rather than OR'd.  So if you say stop = true, the OR results in a True, but the negation turns that into False and the loop does not stop.  In the top button, you had the enum compared to exit, then that was NOT so the loop would stop immediately if the enum was anything but Exit.  Because the Boolean logic in these loops was convoluted, I think the loops weren't behaving the way they should.
    I made some modifications to clean up the default case and the boolean stop loop logic in each of the loops.  See attached.
    Attachments:
    MultipleLoopsV82 MOD.vi ‏90 KB

  • Use of Partner Function in WBS authorization

    Hi all,
    Considering the following scenario:
    " I have a few users, User A, B and C who are all authorized users to the various project system functionalities. However, I would like to set up authorization in such a manner that each project/ WBS elements can only be changed/ viewed by its creator and users nominated via partner functions.
    For example, if user A creates a project,, users B and C will not be able to access the project unless user A enters one of their IDs under one of the partner functions."
    Is the above scenario, or anything similar, possible under standard customizing/ authorization settings?
    Many thanks for the help.
    Cheers,
    Daniel

    The steps are as below:
    Project system->Structure-> Operative Structure-> WBS-> Define Partner Determination Procedure and Roles->
    Slect "Define Partner Determination Procedures and Partner Roles"
    Choose the partner function and click "Partner functions in Procedure".
    (Txn:OPSPAR3)
    Here you can make the desired partner function mandatory.
    Please refere this post. mostly will stisfy your req.
    Re: PartnDet.Proc in PS
    Regards
    Nitin
    Edited by: Nitin  Patoliya on Feb 9, 2009 10:23 AM

  • WBS elements in Investment profiles

    Hi Experts,
    Is there any way we can check that to which all WBS element an investment profile is attached?
    Regards,
    Vijay

    Hi Vijay,
    If an inv. profile (or other customizing settings) is used somewhere, it must not be deleted in the customizing table, otherwise it cause database inconsistency.
    To forbid the user to maintain this field at wbs, you can use the
    customizing item
    'Define Field Selection for Work Breakdown Structures'  to hide\disable the filed. in the following path: Project System -> Structures -> Operative Structures -> Work Breakdown Structure (WBS) -> User Interface Settings.
    Please reward points, if it is helpful.
    Kind regards,
    Zhenbo

  • Foreign Currency in COPA

    Hi All,
    What are the currency options available in COPA ? Is there some thing like Foreign currency? if there is how can I activate it? Can any one explain the concept behind foreign currency in COPA?
    Thanks
    MKR

    Hi,
    In COPA we can have option of two currencies global currency i.e operating concern currency and local currency.Before you can update data in CO-PA in two currencies, you need to activate the company code currency on the Attributes screen for your operating concern. You do this in Customizing under Structures -Operating Concern - Maintain Operating Concern.

  • Substitution for control key

    Dear Gurus,
      I am creating a project with 6 WBS elements. When I am creating internal activity then my control key is PS01.
    My requiremenet is that only for 1st WBS of every project, my internal activity should be ZPS1 and for remaining it would be PS01. Is it possible through substitution ?
    Please guide
    Keshav

    Hi,
    SPRO >> PS >> Structures >> Operative Structures >> Work Breakdown Structure (WBS) >> Define Field Selection for Work Breakdown Structures >> Field Selection: WBS Element >> F2
    Here define the 6 levels of WBS as per your requirement.
    And in substitution, try to add control Key as fixed value for WBS level 1.
    I am not sure it will work, but have a try
    Regds,
    CB

  • Product Hierarchy field in WBS

    Hi Everyone
    I have checked every where and still unable to find solution that whether can we add product hierarchy field in WBS or not? If yes then how can i?
    I have already checked at spro>img reference>project systems>structures>operative structures>user interface settings> define layyout of WBS element deyail screens
    But cannot get any answer or clue over there. I was wondering If the field Product heirarchy could add up (PRODH). please help

    Hi Master mind,
    What exactly do you mean by saying Product Hierarchy?  As Ken said, its not a standard PS field. If you wish to add this field at the WBS element level you will need to go for an enhancement CNEX0007    Customer-specific fields in WBS elements
    Regards
    Varun

  • New Tab in WBS Elements & need to pull fields from Std SAP Tab to the New

    Hi All,
    I would like to create a new TAB in WBS Element & I need to pull fields from Basic data tab,Origanization Tab,Control Tab & user Fields Tab  to the New Tab.
    Basically my clients wants to see all the fields (based on the requirement) in one TAB.So user will directly  go to the Custom Tab & enter the input data & save.
    So Kindly guide me how to proced.I tried WBS Layouts ,but am confused.
    Any ABAP work is required?or can we do it in PS Configuration itself?
    Thanks
    Suresh

    Configuration:
    Project System>Structures>Operative Structures>Work Breakdown Structure (WBS)>User Interface Settings>Layout of WBS Element Detail Screens>Define Layout of WBS Element
    Detail Screens
    Do do something as below:
    Project Profile:000CAP1
    Act Cat:*     
    Tab Page ID: TAB01     
    Tab page Title:Basic Data
    ICON_HEADER
    Details Screen 1: 2 (WBS Element Basic Data)
    Details Screen 1: 5 (WBS elements, organization)
    Details Screen 1: 8 (WBS Element: User Fields)
    Regards
    Sreenivas

  • User Defined Fields, Is Dropdown Selection possible?

    Dear Experts,
    In User Defined Field -1 can we define our own values, so that for this field we can make drop down selection, instead of manual entry.
    Facility seems to be available, as it shows balloon there. But no values of cource.
    Is it possible?
    If yes, How?
    SSanjay

    Possible but enhancement.
    Refer node:
    Project System>Structures>Operative Structures>Work Breakdown Structure (WBS)>Enhancements for Project Definition and WBS Elements>Create a Check of User-Defined Fields in a WBS
    Enhancement:CNEX0001    Checking user fields
    Component:EXIT_SAPLCJWB_001: for work breakdown structures
    Regards
    Sreenivas

  • Adding Project Type as a charecteristic in Drilldown reports

    Hello SAP PS gurus's,
    Can anyone advise how a Project Type field can be added to the characteristic list in the CJE1 (create report)
    Hoping for input
    Regards,
    Pradeep Palli.
    Edited by: PRADEEP PALLI on Mar 31, 2009 3:37 AM

    You need to create project type in the configuration settings using ther following path
    SPRO> Project System> structures>operative structures>WBS>create project types for WBS elements
    Use this in the project for reporting purposes as per project type.
    Hope this helps
    Venu

Maybe you are looking for