Setting flag account assignment element in PS within BADI doesn't work

Hello,
I would like to set the flag for account assignement element and billing element in PS depending on some fields of cProjects. Hint 993642 says that can be done in GCC_PS_PROJECT_LABEL. Unfortunately I don't know how to pass some parameters from cProjects to the relevant method.
For transfering the standard fields I am using (thanks to Matthias) the BADI DPR_FIN_GECCO_ATTR.
There are several blocks with fields I set. Each block looks similar to (except the field and the value)    
ls_attribute-data_element     = space.
      ls_attribute-value            = space.
      ls_attribute-field_name_orext = 'WBS_ACCOUNT_ASSIGNMENT_ELEMENT'.
      ls_attribute-fldname_receiver = space.
      ls_attribute-struc_name_copa  = space.
      ls_attribute-field_name_copa  = space.
      ls_attribute-ext_attr_name    = space.
      ls_attribute-ext_attr_value   = space.
      INSERT ls_attribute INTO TABLE ct_attributes.
In the default method the WBS_ACCOUNT_ASSIGNMENT_ELEMENT and WBS_BILLING_ELEMENT are overridden constant to 'X' like hint 993642 describes. But at least I have no glue how to pass my relevant parameters to the method to be able to set the values in my own implementation of this method.
So, does someone knows how to pass values to this method?
Thx,
  Vanessa
Edited by: Vanessa Martinez on Oct 28, 2008 9:23 AM

Hi Vanessa,
I tested the proposal I told you today, and when I came into debug mode in BADI F_EX_GCC_PS_PROJECT_LABEL~GET_WBS_ELEMENT, here is what I obtain in structure ATTRIBUTES_OF_EXT_OBJ.
Line  | Data_element |    value       |        field_name_orext
1        |                     |    TEST      |         USER_FIELD_CHAR20_1
2        |                     |    TEST2    |         USER_FIELD_CHAR20_2
3        |                     |    TEST3    |         USER_FIELD_CHAR10_1
4        |                     |    TEST4    |         USER_FIELD_CHAR10_2
So if you build an enhancement at the end of the method (don't hesitate to copy standard code if it helps), you should be able to retrieve your values, and set the flags as wanted.
read table ATTRIBUTES_OF_EXT_OBJ
into ls_attribute
with key field_name_orext = 'USER_FIELD_CHAR10_2' (actually the name you set on cProjects side, so you might be able to do it as well for WBS_ACCOUNT_ASSIGNMENT).
Matthias
Edited by: Matthias BRISSEAU on Oct 28, 2008 2:21 PM

Similar Messages

  • Statistical WBS Element - do we need to set as Account Assignment Element?

    Hi,
    I would like to know if I define the WBS element to be statistical (statistical ticked in Control tab) and would want to have posting.  Do I need to set it as account assignment element?  (I noticed system is not allowing me to post if I do not set it as account assignment element).  I want to make sure the actual cost would be be posted to the WBS element as the WBS element should just be statistical in nature.
    Please also confirm if I always need to specify actual cost center posted if the statistical field is ticked PRPS-KOSTL.
    Thanks!

    Yes, so the account assignment should always be ticked if I want to post actual to STATISTICAL WBS Element.  Now I would like to confirm if I always need to specify actual cost center posted if the statistical field is ticked PRPS-KOSTL.
    Also, I understand that if I run CJI3, for statistical Actuals posted, its value type will be 11 - Statistical Actual instead of 4 - Actual.
    Thanks!
    Vivian

  • What is the importance of word account in 'Account' assignment elements

    Automatic 'account assignment derivation' minimizes the manual effort of entering postings in which the 'account assignment elements' can be entered. The values derived appear as default values that you can overwrite if you wish.
    FM account assignment elements, Derivation of FM Account Assignment Elements from CO Acct Assgnmnts.
    These are many place where word account assignment elements is used in sap.
    what is the importance of word 'Account'. What should we understand if word 'account' assignment element wording is used in FM,CO or FI.

    i have tried but no one answers specific question -- What is 'account assignment element'.
    its used everywhere as if everyone understands it in every module.
    for e.g
    FM account assignment elements are not migrated to BCS. Nevertheless, they are crucial to proper migration, since budget data is assigned to these account assignment elements. You have the following options:
    ·  If you do not want use new FM account assignment elements in BCS, you should proceed as follows:
    Migration at fiscal year-end: no specific action is required. See link below.
    Migration during the course of a fiscal year: you should carry out the activation of account assignments for BCS and optionally also define your budget structure.
    ·  If you want to use new FM account assignment elements in BCS, such as the grant or funded program, proceed as follows:
    Now if someone is new to SAP what would he understand with word - FM account assignment elements
    Like in FI we have GL account and in FM we have Commitment item. Two different nomenclature. Why account assignment element is used freely as If everyone else understands it, I would love to understand that how to interpret word account assignment element differently if used in different module.

  • WBS element changed into an account assignment element

    Hi Gurus,
    Please let me know that how to get WBS element changed into an account assignment element.
    regards
    mohan

    In what releation? For depreciation costs?

  • Value Blank/space is invalid for account assignment element fund

    Hello!
    I created an invoice with several items linked to funds reservation.
    when the invoice has 2 line items, the payment run is executed without problem.
    when the invoice has more than 3 line items, the payment run is executed with error.
    The message error (message number F6804) is "value blank/space is invalid for account assignment element fund".
    I dont know where i should enter a valid value for fund.
    Thanks for your kind help!
    Chiachen

    Hi Chiachen,
    The problem occurred because the functional area is not inherited from the Purchase order during MIRO posting. As a result, error message F6841 is issued.
    There are 2 main programs for the FM derivation:
    1. Function Module FM_DERIVE_ACCOUNT_FROM_COBL
    2. Program LFMCOBLF06
    The latest notes which affects these 2 programs are 1244381 and 1247982.
    Kindly implement these notes using SNOTE.
    During this process, it should also bring in all the other pre-requisite notes. Do not worry if the
    symptoms described in the notes do not match yours. What's more important is to bring the coding in your system up to date. Please retest MIRO after the notes are applied. Let me know the results.
    Check also the notes 17941 and 982511.
    I hope it helps
    Best Regards,
    Vanessa Barth.

  • CProject Phase - Account assignment element

    Hi All,
              I am able to assign account assignment element for CProject phase manually.
    I want to do it through program,
    Could you please provide me the BAPI/FM to assign an account assignment element for each phase in XRPM .
    I am assigning WBS as account assignment element.
    Thanks and Regards,
    Ashok Kumar
    Moderator message: please (re)search yourself before asking, show what you have done yourself so far if posting again.
    Edited by: Thomas Zloch on Jul 15, 2010 12:49 PM

    If cost has been posted onto the subject WBS then the account assignment element cannot be unchecked i.e. it remains greyed out. You wont be able to change it even via CNMASS. The only option left could be to cancel the transactions that led to the cost assignment (please note a reversal means another transaction that only reverses the effect but does not remove the line items altogether, therefore a reversal does not remove the AA indicator).
    Also note that the cost can be both actual or statistical in nature. Even settlement from lower level WBS to higher level WBS leads to greying of the indicator.
    Regards,
    Ammar

  • Set customer account assignment group

    Hi all,
    I would like to know where I could set the customer account assignment group? I've done a search and its always told me the customer master data, but I've looked in XD02/XD03 multiple times and I can't find the field. Can someone tell me where its located?
    Thanks,

    but I've looked in XD02/XD03 multiple times and I can't find the field
    It is because, in OBD2, for that Account Group, the said field is set for hidden.  Normally, other than Ship To Party, we can see in customer sales area data.  Since some clients would like to have this field to be displayed only for selected account group which differs from client to client.
    thanks
    G. Lakshmipathi

  • Dynamic VLAN-Assignment from RADIUS with Aironet 1242AG doesn't work properly

    Hello All,
    our setting is to assign VLANs dynamically from RADIUS (freeradius) to Clients connected to the 1242 Access-Points with one SSID. We have Firmware
    12.4(10b)JA/JDA on the Aironet 1242.
    The clients should be connected to one of three VLANs - one for staff, one for students and one for guests. I use the Web-Interface of
    the 1242, because I'm not very familiar with IOS cli.
    After assigning the first VLAN to the SSID -> click Accept, assigning the second VLAN to the SSID (overwriting the previous one) -> click Accept,
    assigning the third VLAN to SSID (overwriting again) -> click Accept,  the assignment of VLANs works really fine,
    (the only thing i change on the page is VLAN, the SSID is set to mandatory WPAv2)
    BUT...
    when the 1242 is rebooted (due a building power off or similar) it doesn't work anymore. Clients end up in an endless authentication loop.
    After doing the procedure again from above - assigning all VLANs sequently once, it works fine again !  till next reboot...
    All VLANs have same encryption, cypher, TKIP+AES CCM. On the Cisco-Site I found a command, which i also tried with no success:
    'aaa authorization network default group radius'.
    I also tried to save the working config and load it into the 1242 again, this also did not work.
    It seems that i'm doing something wrong, but what ?
    Thanks for some help,
    Frank

    All you really need to do is make sure the subinterfaces/vlans are created for each VLAN you need, then have radius push down IETF attributes 64, 65, and 81.

  • Set Manual Account Assignment for movement types.

    There is a movement type for which I set "Field is suppressed" with OMB6. Then, on the UI of MB1A, I couldn't see the "account number" field. But on UI of MIGO, the "account number" is still available for user to maintain. Is there anything wrong? Shouldn't I to config this with "OMB6"? Please help. Thank you.
    Regards
    Robbie

    In OBYC for Transaction GBB,  instead of BSX,  maintain BSA, VAX & VAY for each Valuation Class of material and its respective G/L Account.
    For example, if you are trying for a FERT material, then the entries should be
    0001::::BSA:::::7920::::::4XXX30
    0001:::VAX:::::7920:::::::5XXX30
    0001:::VAY:::::7920:::::::6XXX30
    Also check in OMJJ whether you have the settings as follows:-
    MvT::S::Val.Upd:::Qty.upd:::Mvt::Cns:::Val.stng:::Cn:::TEKey:::Acc mod:::Check acct.
    561::::::::::::X::::::::::::::::::::::::::::::::::::::::::::WA01:::::2:::::GBB:::::::BSA::::::::::::::::X
    561::::::::::::X::::::::::::::::::::::::::::::::::::::::::::WA01:::::3:::::PRD::::::::PRA:::::::::
    561::::::::::::X::::::::::::X:::::::::::::::::::::::::::::WA01::::::2::::GBB:::::::BSA:::::::::::::::::X
    561::::::::::::X::::::::::::X:::::::::::::::::::::::::::::WA01::::::3:::::PRD:::::::PRA:::::::::
    Check whether your settings are similar to above.
    thanks
    G. Lakshmipathi

  • Activate account assignment element Fund

    Dear Gurus
           We already used this FM since 2000 because of the need business, we activated the rating element Ado (fund). Now we have to reassemble the balance in the table BPJA to be written to the Fund for fund center and commitem item . We update the applications purchases through the transaction and fmvt FMCN, but unfortunately the table Total (bpja) is not being updated. Anyone have any solutions ?
    We are in ECC 6.0 EHP4.

    Thanks Eli
          We are migrating to the BCS. My biggest problem and that was element to activate the fund. purchase orders as we have old where the classification was only used ado Fund Center and Commit item. With this need to reclassify the old order with the element fund.
         We reclassify the applications, but even so we used transaction fmbv BPJA the table is not leading the fund (Geber)
    PS. Do you have any SAP notes or document that mentions that the Former budgeting is discontinued?
    Thanks

  • Stop(); within movieclip doesn't work and all my other code doesn't run

    Hey guys,
    I've got a movieclip which has the code stop(); written within it, so that it doesn't play unless i interact with it. What happens now is that when i run the swf file, the entire movie keeps looping, and all my other code just doesn't run.
    I've named my instances buyButton and so on but yeah, somehow it just ignores all my code and just loops. Help!

    Hi Ned,
    In the main timeline it's just one frame yes. So on my main timeline there is a movieclip. Within that movie clip is an animation that adjusts the 'shine' on it. That animation is 20 frames long and i put a stop(); on the first frame inside that movieclip, with the intention that when i publish the swf, the movieclip doesn't loop, but should stop on the first frame. Only if i start to move my cursor over the movieclip, then it has feedback, which is to play the 'shine' animation. That sorta thing. So i had some code in the actionscript layer which edits the text property of the movieclip and it changes from "Click to Buy"(as shown in the screenshot) to "Buy a Shirt!".
    However, when i publish the swf file, the other code, like the one which changes the text property of the movieclip is ignored and also the stop(); function within that movieclip too. And i end up having a movieclip which constantly loops within itself. Other code which i put in, like setting the buttonMode = true and useHandCursor = true are also ignored. The odd thing is that there are no error in my output window. and my publish settings are set to use Actionscript 3.
    EDIT: sorry i used my other account on this haha

  • Assigning text tone to particular contact doesn't work on my Mac

    I have been trying to assign text tones to particular contacts in Yosemite by clicking the drop-down while editing my contacts in the Contacts app and choosing the text tone, but it doesn't seem to work. Every time a message comes in from those contacts, it always uses the default alert that is set in the Messages app. What's going on? Is it a bug or something?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • I downloaded the new 4.0..I don't like how everything is set up now. How do I get it back how it was set up on the page? Plus my cache doesn't work now.

    I would like to know how to get it back how it was set up for bookmarks, history etc. I don't like how it is set up now.

    If your library was working on your computer and then popped up empty all of a sudden then this might be what you need...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Hyperlink to a shortcut within pdf doesn't work

    I've written a document in Word 2010 on PC, and used the function within Word to save as PDF.
    The document contains lots of hyperlinks.  Some of those point to shortcut (.lnk) files on the local network.  While these hyperlinks work fine in Word, in Reader XI I'm asked to allow (which I do) and then... nothing happens!
    I enter the link to the shortcut when creating the hyperlink in Word as "\\mydomain\myfolder\my file.doc - shortcut.lnk".  When you point at the shortcut in Word the tooltip puts "file:///" in front of the path.  In Reader it has "file:" in front (without the slashes) and has turned all the back slashes into forward slashes.  I've tested with a link to an actual document rather than a shortcut (.lnk) file and while it still changes the link text as noted, the hyperlink now works in Reader although it asks twice for confirmation to follow it.  So it seems like the .lnk file is the problem somehow.
    Has anyone encountered this and is there a solution?
    Thanks in advance!

    Here is the URL http://www.soka.edu/files/documents/academics/academic-catalog-2013-2014.pdf#page=83
    It works in Windows machine but not in ipad safari.
    Thank you,
    Rutvi

  • EXECUTE IMMEDIATE within Procedure doesn't work!!

    Hi,
    I have a code in which the procedure is successfully created, but when I try to check if the table TEST_TABLE is created (ex, DESC TEST_TABLE) it generates an error:
    ORA-04043: object TEST_TABLE does not exist
    Which means that my EXECUTE IMMEDIATE didn't work within the procedure for some reason, while it works perfectly alone without the procedure!!
    Hope you help me with this..
    Here's the my code:
    CREATE OR REPLACE PROCEDURE TEST_IMM1
    AS
    BEGIN
    EXECUTE IMMEDIATE ' CREATE TABLE TEST_TABLE (ITEM_DESC VARCHAR2(10))';
    END;
    --Procedure created.
    DESC TEST_TABLE
    ERROR:
    ORA-04043: object TEST_TABLE does not exist

    user11921409 wrote:
    Thanks a lot Ahmed, yes it worked after executing the procedure and table is created. But that's only one part of the problem, in which after dynamically creating the table TEST_TABLE, I should be able to insert data to it such as:
    CREATE OR REPLACE PROCEDURE TEST_IMM1
    AS
    BEGIN
    EXECUTE IMMEDIATE ' CREATE TABLE TEST_TABLE (ITEM_DESC VARCHAR2(10))';
    END;
    --Procedure created.
    CREATE OR REPLACE PROCEDURE INSERT_TEST_TABLE
    AS
    BEGIN
    TEST_IMM1;
    INSERT INTO TEST_TABLE VALUES ('A');
    END;
    --Warning: Procedure created with compilation errors.
    PL/SQL: SQL Statement ignored
    PL/SQL: ORA-00942: table or view does not exist
    Can you tell me how to use INSERT with EXECUTE IMMEDIATE.
    Thanks :)Just as an FYI, this is really not a good methodology to program in Oracle. If you're doing this for purely learning purposes then it's less 'bad', but if you plan on programming as a career in Oracle, this isn't the method you'd want to adopt (i'll not say there is NEVER a case for something like this, but it's a small percentage of the typical use cases).
    You would do better to create a global temporary table if you need a table to muck around with in a session, or create a permanent table (likely not via procedures) and have it persist in the schema of your choice.
    Utilizing execute immediate for insert statements, especially without BIND VARIABLES, will create a sad day for your database.

Maybe you are looking for

  • Web-cam is not detected yet installed

    Hi! I m doing a program tat can capture movie from available video capturing devices, i hav installed web-cam, but while searching for the devices available(Detecting the device) , it is not identifing the device. And still if i m giving direct the d

  • How to add new fields in sap scripts using itcsy structure

    hi guys,            could u provide the screen-shots for adding field in scripts. copied standard forms . thanks& regards eswar.

  • [SOLVED] RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911 won't compile

    Everytime I attempt to compile this driver that I downloaded from RealTek's website I run into a problem. Here's my make install output: http://pastebin.com/rQWGKYxK Anybody know of a solution? Last edited by eattheapple (2014-07-22 18:33:34)

  • Notes on iPhone 4,,,,,

    Help! Notes on iPhone are gone. How do I restore ONLY the notes? I dont want/need to restore everything, just notes. - Thanks!

  • BPEL async calls OSB which calls BPEL async

    In this scenario, I use the bpel-10g transport with an opmn ULR to call the back-end BPEL process. The bpel-10g transport seems to be the only way to include the callback address. I'm getting an error like this: <fault><remoteFault xmlns="http://sche