COPA Derivation rule not running in background

Hi all
We are encountering a strange problem during derviation in document posting & creation of assets.
We have added a characteristic value Material group to the profitability segment and have added a derivation rule in KEDR based on order.
The rule is if the value of order number is filled then the material group is assigned a value.
Order number          Assigned         Material Group
Z0000000001              =                        001210
The problem is that we have to manually go into the PA segment and click the derivation button OR just press enter to get the derivation working.
If we do not access the PA segment area then the derivation is not carried out in the background.
I have tried searching for notes and for some relevancy on the forums.
I have also taken screen-shots and uploaded them, please view in order.
Derivation Rule
http://i116.photobucket.com/albums/o23/zkage/Deriv1.jpg
Document Posting(Deriv rule not picked even order is placed)
http://i116.photobucket.com/albums/o23/zkage/deriv2.jpg
The PA segment before pressing enter or the button derivation
http://i116.photobucket.com/albums/o23/zkage/deriv4.jpg
The PA segment after pressing the button
http://i116.photobucket.com/albums/o23/zkage/deriv3.jpg
We require that the derivation runs in the background after we enter the line item details. The system is not picking the derivation if we directly post the document without checking the PA segment.
If there is some BADI or user exit we could use to manually replace the COPA characteristics explicitly at document posting, please let me know
Thank You

Hi,
You have to use the rule,
Moves it let you copy a constant or the content of the source field to target field.
With regards
krishna

Similar Messages

  • Copa derivation rule not working for Discount GL

    Hi All,
    Kindly note that I have a distribution rule where company & plant combination is used where condtion is that customer group 3 should be 018 and then replace distribution channel to 03.However the rule is not working for discount GL posted in the billing document.
    I tried testing it in FB50 but then it does not allows me to enter plant and because of that derivation rule fails. However in my billing doc I do see a plant  against discount GL and still the rule is not getting picked.
    I had raised this issue earlier but the reply where not as expected and so I have rephraised my question.
    Kindly help me on this.
    Regards
    Pranay

    Hi Pranay
    I could not understand your req to a great detail, following are my observations
    1. There should be derivation rule in place 1st of all to derive customer group from billing doc...
    Check if Cust Group is populated in your COPA doc or not.. For this cust group should be a segment level char in KEQ3
    2. Create a derivation rule using method "Derivation".
    Source fields would be Cust Group, Plant and Company code ( I guess you want to change dist channel with this combination)
    Target field would be VTWEG (Dist Channel)....Click on the magnifying lens beside VTWEG and choose relevant radio button "Overwrite if ......."
    CLick on RULE VALUES and maintain the required Values there
    This should work...
    Regards
    Ajay M

  • COPA Derivation Rules are not assigning the correct values

    COPA Derivation Rules are not assigning the correct values when we process billing documents in batch.  We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.).  The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening.  It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent..  Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run?  Thanks!!!

    Leigh,
    Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
    COPA0001  Enhancement for derivation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEDRCOPA_001
    COPA0002  Enhancement for valuation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEAB_001
    COPA0003  Enhancement for assignment to profitability segment (CO-PA)
    Function Module: EXIT_SAPLKEAK_001
    COPA0005  Enhancement for actual data update (CO-PA)
    Function Module: EXIT_SAPLKEII_001
    Function Module: EXIT_SAPLKEII_002
    Award suitable points if the above helps. You can also reach me at [email protected]
    Thanks
    Ajay

  • Copa derivation rule for customer group

    Hi All,
    I am currently facing an issue with Derivation rule and hope someone can help me on resolving  this.I have created a COPA derivation rule which has field as
    Source Field
    company code
    Plant
    Target field
    Distribution channel
    Condition
    customer group 3 = 18.
    so ideally with this conbination the distribtion channel gets updated
    for the sales order.
    However the issue we are facing is that the rule is working for only 1st line item and not for the others. I have also kept setting as" overwrite values only if new values found"
    e.g if we see the accounting doc of billing then
    line item 1 customer: x
    line item 2 SaLes GL: rule works fine and dist channel is updated.
    line item 3 discount GL: rule does not work.
    Have checked the derivation rule and it looks correct.
    Can you kindly suggest solution to this.

    Hi Ajay,
    Thank you so much for your reply.Please note that the GL is a cost element but the category in system is 1 and not 12.However I would like understand as to why is this happening.why does the system picks up derviation rule for a Gross sales GL and not for Discount GL(Cost element).
    The distribution channel  gets updated for sales GL when i check the prof segment of the line item, however this is not the case with doscount GL.
    I would like to understnad the implication before changing cost element category from 1 to 12 as it runs across system.
    Kindly provide some more explaination.
    thanks in advance.

  • COPA derivation rule :more than 6 target fields

    Hi ,
    As per client's requirement I need to include 10 target fields in a COPA derivation rule . Now after entering 6 , I can see rest of the rows are greyed out ; it looks like SAP does not allow more than 6 as target .
    I tried to find out if such limitation is mentioned anywhere in SAP documentation but I could not find ; if anyone has any reference doc on that please let me know .
    Secondly , how to meet the requirement ? I can break the same into 2 separate derivation , say 6 target & related rule value in the first and in just next step another 4 targets & rule value ; the source remains same in both the step .
    OR any COPA user exit / enhancement will help me accommodate all 10 targets in a single step of derivation ? as far as my knowledge goes SAP provided COPA user exits (1 to 5) will not be helpful here .  
    Awaiting your help ...
    Regards
    Indranil Sen

    Dear Indranil Sen,
    As per my knowledge it is not possible to mention more than 6 source and target fields for a derivation rule.
    Because for that program, SAP defines that (1+5) fields for that screen.
    That is the reason you are getting the gray color after 6 entries
    Yes we can increase that limit but for that we need the access key.
    If you have access key authorization, you can increase the limit
    Reasons in detail:
    Screen filed what you are looking for is:
    DYNP5400-SRC-NAME-FIELDNAME
    There you can enter (1+5) entries only. enhancement for that field is difficult.
    So you can opt for  2nd option as you said.
    Let see  Mr. Waman Shirwaicar's  views on this issue.
    Regards,
    Pavan Kumar Arvapally

  • How to copy copa derivation rules ( maintain rule value)

    Hi All,
    Can anyone help how to copy the copa derivation rules with maintain rule value from production to quality.

    Hello,
    Export and import of copa derivation rule is not possible.
    usually Transports are moved from quality to production as per best policy.
    Production to quality happens at the time of quality refresh.
    in case of high importance please get in touch with Basis team.
    Regards
    Lavanya

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Replicating COPA derivation rules in BI

    Hi All,
    We have a requirement where we are creating an extractor and COPA derivation rules available in ECC needs to be replicated in BI. My doubts are-
    1. Could this be directly achieved in BI, if yes then how would we maintain sync between the ECC derivation rules and the replicated ones in BI. If there is some update on these rules, how would the respective BI rules get updated?
    2.Should this be handled during extraction in ECC itself. If yes, what is the best approach for this?
    any pointers catering to the above questions and anything related to mapping derivation rules in BI would be a great help.
    Thanks in advance for your help and time.
    Regards,
    Bansi.

    Hi AMK,
    As a protocol that is followed on this site, please do provide points in case the replies helped, this helps in motivating the people to keep posting for the queries and also helps in keeping the spirits of the team high.
    Regards
    Ashish

  • Not running in background

    How to check whether the pgm is running in background?
    I have a production Issue :
         A Z-Pgm is not running in background.

    Hello Madhu,
                       Check the background process in T-code SM50 and also you can check the Job log if you are running the program inside the job.
    Thanks,
    Greetson

  • COPA derivation rule for GL fields

    we are using Transaction type (BSEG_BEWAR) to store additional information for our Sales reporting. During the GL entry this field is update. I have created Derivation rule in COPA using table look up. The table I am using is BSEG. I have characteristics defined for Transaction type- WWTTY.
    when the table lookup is populated I get following fields in source as target :
    BSEG  -
    > BUKRS                                COPA  --> BUKRS
    BSEG  -
    > BELNR                               COPA -
    > BELNR
    BSEG -
    > GJAHR                              COPA  ---> GJAHR
    BSEG  -
    > BUZEI                               COPA  -
    > WWDOC ( This is custom defined in COPA)
    Assignment of Target Fields:
    BSEG ---> BEWAR                                COPA -
    WWDOC
    Still I am in seeing COPA getting updated with Transaction type value.
    Need input to solve this issue.
    Thanks in advance

    Hi Ajay,
    Thank you so much for your reply.Please note that the GL is a cost element but the category in system is 1 and not 12.However I would like understand as to why is this happening.why does the system picks up derviation rule for a Gross sales GL and not for Discount GL(Cost element).
    The distribution channel  gets updated for sales GL when i check the prof segment of the line item, however this is not the case with doscount GL.
    I would like to understnad the implication before changing cost element category from 1 to 12 as it runs across system.
    Kindly provide some more explaination.
    thanks in advance.

  • Derivation Rules Not Working for other company codes

    Hi,
    I have 5 Company codes and only for one FM was activated. now i want to activate FM for all 5 company codes. for which i have assigned the FM area to all 5 company codes. I have also assigned the derivation strategy to all 5 company codes as well. now when i post a transaction for any other company code derivation rules is not being process hence no commitment item or fund center is derived. however for the original company code for which FM was activated in the first derivation rule are working fine means system is deriving commitment item and fund center. can any one tell me why derivation rules are not working for other company codes? do i have to add Company code in source field of derivation strategy? could this be the reason? because in beginning there was no other company code so we did not included any company code field in the first place.
    Regards,

    Faizan,
    Go to  Funds Management Government> Actual and Commitment Update/Integration> Activate/Deactivate Funds Management.
    In the screen create an entry for each Company Code and Funds Management Area combination.
    Activate the AA Derivtn flag if you want the derivation to be called and the Update flag if you want to update commitments and actuals in FM.
    Thanks
    Shyam

  • COPA Derivation rule Error Message no. KE0C133

    Hi
    We have Fiscal Year 2010(April To March) and we are maintaining the derivation rule for the cost center in KEDR
    Ane we are facing following error (Cost center validity is maintained from 01.04.2010 To 31.12.9999)
    If we maintain validity period in from 01.04.2009 To 31.12.9999, then system is allowing to maintain derivation rule.
    What you suggest in this Case ?
    Derivation error :
    Characteristic value  DIC APOPS01DMU does not exist for characteristic COPA_KOSTL (Cost center)
    Message no. KE0C133
    Diagnosis
    The characteristic "COPA_KOSTL" ("Cost center") should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value (" DIC APOPS01DMU") is not valid in CO-PA.
    System Response
    The data is not consistent and therefore cannot be transferred to CO-PA.
    Procedure
    With the function Maintain Characteristic Values, you can add characteristic values to those that are valid.
    Thanks
    Nilesh

    Hi,
    I understand you are checking derivation rule by transaction KEDR.
    When you check Derivation, you can input "Derivation Date" in the bottom of Characteristic Popup screen. Please consider what the system check the validity period for e.g. cost center with using "Derivation Date".
    Additionally, for CO-PA planning, please consider that CO version also have "Derivation date".
    Hope tis helps.

  • [SOLVED]Can Some Processes Not Run In Background

    Hi,
    Can some process just not run in the background? I have an irc bot and I want irssi to continue running even after I exit. I do
    $irssi
    ctrl-z
    bg
    But after bg it says
    [1] irssi &
    [1] irssi STOPPED
    I've also tried sending the kill CONT signal but it just always stops. Is there another way I should do it for this type of process? Thanks!
    Last edited by Prototype (2014-02-09 03:42:08)

    karol wrote:If you're asking how to background irssi, read http://www.hants.lug.org.uk/wiki/LinuxHints/Screen http://tmux.sourceforge.net/
    Is there no way to run irssi in the background (disowned) with just the built in bash commands? My main goal is to have it running (with me logged into servers) when I exit the terminal.
    Last edited by Prototype (2014-02-09 03:26:24)

  • Not running in background mode 'N'

    hi experts,,,,,
    i have a  small issues in my BDC
    where i face problem when running in background
    if i update in 'A' mode its get updated
    whereas in background 'N' mode it doesnt take the changes
    and CHANGES NOT  GETTING REFLECTED/...
    can you pls help me out
    thanks in advance
    Rachel
    piece of my code as follows...
    ============================
    LOOP AT it_final INTO wa_final.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '1000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'RISA0-SERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '/00'.
        PERFORM bdc_field       USING 'RISA0-MATNR'   wa_final-matnr.
        PERFORM bdc_field       USING 'RISA0-SERNR'   wa_final-sernr_in.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=EQUI'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-CHARGE'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=T\01'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'EQBS-B_LAGER'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-SERGE'.
    if p_unpair is  initial .
        PERFORM bdc_field       USING 'ITOB-HERST'    wa_final-manf.
    *    PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-model.
        PERFORM bdc_field       USING 'ITOB-MAPAR'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-SERGE'    wa_final-man_ser.
        PERFORM bdc_field       USING 'ITOB-HERLD'    wa_final-country.
        PERFORM bdc_field       USING 'ITOB-BAUJJ'    wa_final-year.
        PERFORM bdc_field       USING 'ITOB-BAUMM'    wa_final-month.
    else .
        PERFORM bdc_field       USING 'ITOB-SERGE'    ''.
    endif.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=BU'.
        CALL TRANSACTION 'IQ02' USING bdcdat
                               MODE pr_mode UPDATE 'A'
                               MESSAGES INTO it_messtab.
        CLEAR: bdcdat[], bdcdat.
        CLEAR: wa_final, wa_messtab.
      ENDLOOP .
    end-of-selection .

    Hi Rachel..
    While running the BDC in 'A' Mode check the message that come in the status bar. There could be any screen where just becuase u press enter it is going to the next screen. That is because of your intercation.
    But in the case of background this is not hapening and it fails..
    So make sure whether when u run in foreground you are pressing any additional enter which is not in your recording. This could be the only problem why it is not updating in background.
    Another reson could be that you dont have access to back ground jobs. Check that also..
    Regards
    Ansari

  • Buisiness Rules not running properly

    Hi Experts,
    I am using Hyperion 11.1.1 and I have created planning business rules in Calc Manager using RTP variables. The rules get deployed without any errors. When the rules are run from planning, we select the values for the variables in the prompt dialect. The rules starts running but after sometime, the prompt window box gets converted to the form page on which the rule is run instead of showing "Rule run successfully". But quite strangely, some time rules successfully runs. But most of the time, the rule doesn't run. I am not sure whether it's getting timed out or not. Can anyone throw some light on this strange behaviour? Would appreciate your help.
    Regards,
    ADB

    I then closed out of outlook completely.  I opened webmail and created a client-side rule that moved emails from myself to a specific folder, marked them as read, and with high importance.  The rule kicked off automatically and sorted my email
    into the appropriate folder.
    According to this deacription, it seems that the Inbox rule created in Outlook Web Access(a Webmail client for Exchange) can work automatically. If so, I think the issue should be related to Outlook client.
    Since the issue occurs whenever you checked "Used Cached Exchange mode" or not, we can restart Outlook in safe mode to check whether the issue continues to confirm if it is caused by any third-party add-ins.
    Please update your Outlook 2007 to the latest version and remove all Inbox rule to re-create them one by one to check whether the issue persists. If it doesn't work, please change a computer to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for

  • How to schedule job for APDs?

    Hi All, Does anyone have an idea how to schedule a job for APDs? There is a program called "RSAN_PROCESS_EXECUTE" and it can be scheduled, but it needs to be run with the specific APD. I will appreciate any help with points, Thanks

  • How can i get my keyboard to be recognized by the imac?

    how can i get my keyboard to be recognized by the desktop imac?

  • Adding an attachment to e-mail

    We have setup e-mails to users when data has been loaded via FDM, but are looking to attach the source load file to the e-mail. Has anyone done this and if so what additions needed to be made to the generic e-mail accelarator script?

  • Can CRM Load to Two BW Systems?

    Veterans, Can an existing CRM Source system viably concurrently load into multiple BW (NW04s) Target productive systems? If it can, what precautions are needed to ensure viability of delta loads? I've reviewed landscape Note 775568 and it's caveats a

  • Lenovo G570 Windwos xp drivers

    Hi All, this is My first post. I am Using Lenovo g570 laptop. I have installed Vm ware on this i installed Windows xp SP3 32 bit Operating system. i want to install chipset and VGA drivers on my vertual system. Whwnever i try to insatll Chipset drive