Bapi for changing internal order settlement rules
Hi
I'm looking for BAPI to add/ modify settlement rules in internal order (like in tc KO02). BAPI_ALM_ORDER_MAINTAIN seems not working, and there's only BAPI_INTERNALORDER_CREATE and GETITEM in internal order group ( there's no MAINTAIN ).
Is there another BAPI to do this? of FM?
regards
Wojciech.
Thanks for help but this links points to discussions abut creating internal order. I want to change one. BAPI_INTERNALORDER_CREATE does not allow to change orders ( i've just tested it.)
regards
wojciech
Similar Messages
-
For internal order settlement rule amount column is requied instead %
Hi Gurus,
For internal order settlement rule percentage is there but business wants to settle from AUC to final asset by amount wise how can we do this.
I tried to change the investment profile but it is coming amount field while saving it is not displaying.
Please help in this regard
Thank you.
RanganadhHi
Check the path
IMG>Controlling>Internal Orders>Actual Posting>Settlement>Maintain Settlement Profile>Maintain Settlement Profile.
Here there is a tick for amount settlement under Indicators. You need to maintain this check box for your requirements.
Regards
Sanil Bhandari -
Maintain internal order settlement rule using LSMW
HI ALL
I want to do mass maintenance of internal order settlement rule. Settlement category is PSG.
But when I use LSMW to do KO02, I only can input one settlement receriver, the first line will be overwritten by the second line.
I also see BAPI INTERNAL_ORDER_CREATE,but cannot find PSG as a settlement category.
Does anyone know how to do this?
THX
DeeliaHi Lian
When you do recording, enter two settlement rules..
Then, before pressing the "DEFAULT ALL" button, change the Field names for the 2nd settlement rule
The problem you described happens because the field names for both settlement rules are same.. Hence, it gets overwritten
Assume that field name for Order is AUFNR... You can change the field name in recording to ZAUFNR for one of the fields
See the screen shot, wherein I changed the name of the recorded field to _01, _15 and _70
Br. Ajay M -
How to open field WERKS in Internal order settlement rule
Hello experts,
Could you explain please how to add field PLANT (WERKS) in internal order settlement rules. I would like to fill out this field during the settlement process.
Any advices will be very appreciated.
Regards,
IvanHI Ivan,
Please post more details on your business scenario. Why you want to add plant field in the rule?
To which receiver you want settle your internal order? If you want to settle to a material for instance, plant will be one of the field available. Try double click on settlement rule to get to detailed screen. -
BAPI or FM for CHANGING Internal Order
Hi all,
I am looking for a BAPI or Function module for changing a End of Work field (DATE field) for that Internal Order. Transaction for internal order KO02
Please suggest.
Edited by: Anu on Jul 6, 2009 3:30 PMLook at [BAPI_INTERNALORDER_SAVEREPLICA|https://forums.sdn.sap.com/search.jspa?objID=c42&q=BAPI_INTERNALORDER_SAVEREPLICA] (parameter MASTERDATA field DATE_WORK_ENDS)
Regards,
Raymond -
Validating Internal Order Settlement Rule during creation
Does anybody know of a user exit, badi, anything, that can be used to validate assignement data when creating/changing the settlement rule on an internal order?
Appreciate the help...
SamHi, I just wanted to come back and add this extra information incase someone else needs it in the future:
I think we were finally able to come up with an acceptable solution.
<b>The Problem:
============</b>
SAP does not provide an easy way to validate detail section of a settlement rule for an internal order. The user exits that are available do not import the COBRB structure that contains the screen data entered by user in the detail screen.
<b>Solution:
===========</b>
Watch out for wrapped lines!
(1) Implement the BADI: <b>CO_SRULE_CHECK</b>; NO filter; Settlement Rule Custom Validation BADI
(see current thread for details)
Inside the <b>DISTRIBUTION_RULE_CHECK</b> method of your BADI, implement your custom validation. You can call out to your standard CO validaton module, or whatever.
(2) Implement user exit: EXIT_SAPLRKIO_002(include zxaufu02): Call settlement_rule_check.
(3) Implement a subroutine as shown (adapt to your business environment):
FORM settlement_rule_check.
DATA: exit type ref to IF_EX_CO_SRULE_CHECK.
DATA: lt_cobra LIKE cobra OCCURS 0 WITH HEADER LINE, lt_cobrb LIKE cobrb OCCURS 0 WITH HEADER LINE.
don't validate in display mode
CHECK I_ACTVT NE 03.
Call function to get the current settlement rule from
memory buffer (this is the crux of the solution)
call function 'K_SETTLEMENT_RULE_GET'
EXPORTING
objnr = i_aufk-OBJNR
x_all = ' '
TABLES
e_cobra = lt_cobra
e_cobrb = lt_cobrb
EXCEPTIONS
not_found = 1
others = 2.
if SY-SUBRC <> 0.
raising E_MESSAGE.
endif.
Now Prepare/call BADI to check the custom rules
class CL_EX_CO_SRULE_CHECK definition load.
create an instance of BADI
call method cl_exithandler=>get_instance
changing
instance = exit.
call the check method of the BADI
call method: exit->DISTRIBUTION_RULE_CHECK
EXPORTING
DISTRIBUTION_RULE = lt_cobrb
EXCEPTIONS
not_allowed = 1
not_allowed_with_msg = 2.
either use a standard message function or create your
own
IF sy-subrc = 1.
PERFORM message_send
USING 'KD' 'E' '027' space space space space space.
ELSEIF sy-subrc = 2.
PERFORM message_send
USING sy-msgid sy-msgty sy-msgno
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
space. "...
ENDIF.
endform.
(4) Test, Test, Test. Hope it works for you.
Sam -
Material number in profitability segment in internal order settlement rule
Hello,
We have a process which is the following: the real posting for the revenue in the sales order is an internal order. Once the internal order settlement is done, then the values flow to COPA.
The material shows up in the revenue FI document, but it does not show when we look at the internal orders line items.
I need to have the material number from the sales order (from the revenue posting) automatically identified in the profitability segment in the settlement rule of the internal order.
Would anyone know how this can be done?
Thank you!Hi,
Where exactly are you checking for the material no ? When you settle the IO to COPA a record type C will be created in COPA. Is the material no missing in the record type C ?
In that case if the sales order no is available on the internal order then you can in a derivation rule do a table lookup on VBAP and get the material no.
regards
Waman -
Internal order "settlement rule" change
Dear Gurus,
I would like to change "settlement rule" in internal oder which has been used since go-live under ECC6.0.
I go to KO02, keyin 'order number' ,enter and click on "settlement rule" button to update.
but profitability segment line just display mode not changeable.
How can i update settlement rule in KO02?
kr,
J.once you settle an order with a settlement rule you cannot change the rule no more.
But you can create a new settlement rule.
First double click on the settlement rule you are currently using and for the "validity from field" give the last period. so this rule wont be in use anymore.
than create a new rule.
after these steps when you run the settlement, system will pick up the new rule you created. -
CProjects to Internal Order - settlement rule
Hi,
Having created an IO from cProjects, I get to see accouting error. Control Cockpit shows "No settlement rule exists for the Order ...".
Going further, this error is coming in the way of the planned costs getting to IO, and subsequently the IO costs coming up in Fin Planning, in RPM.
Please advise on the steps to correct the settlement rule issue. Resolving one issue is likely to solve many of my issues!
Thanks.Yes. You cannot delete.
If you want to use this new distribution rule from here onwards (means from this period ..) it is possible.
Do the following
1. For old distribution rule (i.e. for old cost center ) change the "valid to period" last month. You can directly change this by clicking the settlement rule in the order master data.
2. For new distribution rule give "valid from period" whatever you want (future periods).
So that you need not delete the old distribution rule.. and from this month onwards your new distribution rule will work.
Radha -
Internal order settlement rule
Hi Friends,
We have a internal order type with investment measure for AUC. When I create a internal order it is creating a AUC in the background but no settlement rule is updated. I released the order, posted some values and ran KO88 ( with and without TECO status) but still settlement rule is not updated with AUC. It is not even allowing me to update settlement rule manually with the AUC. Also in the settlement rule, I don't see AUC in the object type, but I see a FXA, not sure if it is an issue. Thanks in advance
Edited by: nspv81 on Dec 7, 2010 10:05 PMHi,
The system design does not offer the settlement type "AuC" for manually created settlement rules. This is correct.
AuC-settlement rules can only be created by the system automatically if the order/WBS-element has an investment profile with the flag "Manage AuC" set. The investment profile can be reviewed in transaction OITA.
If this is the case then the system will create the AuC rule during the FIRST run of a periodic settlement (update run) by automatically taking the AuC as a settlement receiver.
If you do however not use the investment profile you need to maintain a fixed asset settlement rule and enter the asset number manually.
regards Bernhard -
Error message - data master internal order settlement rule
Hi people,
I'm creating an internal order, and in the settlement rule, i'd like to put a message error when i make a distribuition over 100%. For example, i put 50% in a settlement receiver and 65% in another one, that makes 115%. The system shows a message, but it allows me to save. I need that shows an error message and don't allow me to save.
Anyone can help me?
The message that appears is this one:
Total = 115.00%, ( Set.Type PER / Version / Actual settlement ), period 002/2009
Message no. KD042
Diagnosis
You have entered distribution rules which settle 115.00% in total. This applies for settlement view ( Set.Type PER / Version / Actual settlement ) in period 002/2009.
When checking the percentage total, the system found one of the following errors:
The total percentage for the distribution rules is more than 100%
The total percentage for the distribution rules is less than 100% and this is a rule for full settlement.
The total percentage for the distribution rules is less than 100% and the 100% check is switched on in the settlement profile.
Procedure
You can ignore this message if you are settling by fixed amounts. The settlement then checks whether the settlement sender has been fully credited.
Otherwise, correct the percentages for view ( Set.Type PER / Version / Actual settlement ) to be able to settle exactly 100% in period 002/2009.
If these rules are not full settlement rules (settlement type GES), you can switch off the 100% check in the settlement profile. This procedure also suppresses the message in future.
Note
If you cannot find any fields where you can enter percentage values, this is probably because the settlement profile is configured to hide them. Switch on percentage settlement in the settlement profile, or use equivalence numbers for your rules, if the project profile allows this.
Many thanks.Hi
Below is the extract for the 100% Validation check. Please check the bold part. Even if you save the settlement rule with more than 100% at the time of settlement this will be errored.
dentifier for "100% validation"
Indicator controlling whether percentages in the settlement rules are checked by the system.
If you have defined percentage distribution rules for a particular settlement rule, the system checks the total percentage either when you save the settlement rule or if you use the percentage check function.
Use
If the indicator is set The system issues a warning
if the total is <> 100%.
If the indicator is not set The system issues a warning
if the total is > 100%.
In both cases, you can ignore the warning and save the settlement rule. However, to be able to run the settlement, you must first correct the settlement rule. The settlement run itself prevents you from settling more than 100%.
Note
The indicator only affects periodic settlement. In overall settlement, the percentage must always be 100%.
You can also use this indicator if you are not using percentages for settlement. If this is the case, you must activate the equivalence numbers. You then receive a warning that, even if you have entered settlement rules, none of the rules has received an equivalence number (other than zero). -
BAPI for changing Work order user status in IW32
Hello Experts,
I am getting Same Problem in updating status via BAPI, BAPI_ALM_ORDER_MAINTAIN. Its not giving any error but even not update status.
I know i can use this for changing the user status also but not sure how to carry out things.
I used this code.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-change_event = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee TrivediI am getting Same Problem.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-CHANGE_EVENT = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi -
LSMW issue using BAPI for changing Purchase Order G/L Account
Wonder if anyone can help as I'm tearing my hair out!!
Have used LSMW lots of times using the transaction recorder, but tried using a BAPI as we have a mass update to do of G/L Accounts for Purchase Orders and it seems the tidiest and most efficient way to do it.
Got my LSMW project working as a test by changing the Short Text on a purchase order, this works fine. However, when I add the Account Assignment details in (Structure E1BPMEPOACCOUNT and E1BPMEACCOUNTX) everything seems to run fine, the IDOC posts and gives message 'Document xxx changed'. Yet when I look into the order it hasn't actually changed the G/L.
If I go into the purchase order in change mode in another session and run the LSMW again it recognises the purchase order is locked so it seems to be doing everything right, just not updating the G/L Account field. Anyone got any ideas ? It updated the short text fine so I'm sure everything is set up OK but for some reason it ignores the G/L that I upload. Anything relating to the Account Assignment (Unloading Point, GR, Cost Center) just gets ignored if I try and upload a change.
I seem to be so close it seems a shame not to be able to get it sorted !!!
Thanks,Helen Smith wrote:
HI Praveen,
>
> Thank you very much for your response. I tested the BAPI as per yor instructions and the return message comes back 'Eng & other PO xxxx changed' so it seems to indicate a success message again (like the LSMW does) but the actual data doesn't update.
>
> I thought I'd found it as I searched OSS and found note 0001382965 which seemed exactly my problem. I imported it and applied it but yet I still get the same issue - LSMW runs, says app doc posted and purchase order has been saved but no Account Assignment field will update.
>
> So it seems as if it's the BAPI not doing what it should - so I'm considering logging with SAPNET just to see if they can help as getting desperate with this one now! Felt sure I had it sorted when I found that note!
>
> Thanks
>
> Helen
>
> ** I should add I also ran the test above altering something in the item detail (the short text) - and that worked and updated. So it still seems to point to the Account Assignment part of the BAPI not updating.
>
> Edited by: Helen Smith on Nov 2, 2010 4:35 PM
Hi Helen,
Just wondering whether you have found solution to your issue.
We also encounter the same issue and have implemented the note without any positive result.
Please share if you found the solution.
Thank you.
Abraham -
QM Orders - Funktions/BAPI for Changing
Dear all,
I have to mass change the Profit Center and the Cost Center in the QM Orders.
I can not find a function or BAPI to change the data. Can anybody give me a tip - please.
Thanks for help.
Best regards
RomanDear Roman
Please check this link. I couldnt find anything to change
Link: [Bapi for changing internal order master data]
My recommendation will
1) Write a program to change the costcenter and profit center in the table
2) You can replace the existing order by creating new QM order using the BAPI BAPI_INTERNALORDER_CREATE
Regards
Gajesh -
BAPI for Changing Status of Internal Order Tcode : KO02
Hello Everybody ,
I want to change System status of Internal Order Tcode : KO02 .
I.e if status are REL ( Released ) then I want to make it as CLSD ( Closed ) and Vice Versa .
In AUFK ,
AUFK-PHAS2 = REL (RELEASED )
AUFK-PHAS3 = CLSD ( Closed )
this field we need to set as 'X' as per our requriment .
I used FM " ALE_INTERNALORDER_DB_CHANGE " to changing this field .
but after excution this FM , value of this field is changed but when i see the same order in KO03 this is not reflecting but value in AUFK is changed .
this should not be happend if the value is chage in Table AUFK then must be reflect in KO03 .
I also used BAPI_INTERNALORDER_SAVEREPLICA for Change Internal Order but it's no use ....
Please suggest me any BAPI as per requriment .
ASAP
Regards,
SandeepHi ,
You are right .... I want to chage the status of internal order if CLSD then it should be REL and vice-versa .
and things I am talkinG about is that 'X is maintained in table AUFK-PHAS1 = 'X for REL and AUFK-PHAS3 = 'X' for CLSD .
So my point is that is there any BAPI of FM available for changing the status of Internal Order .
from CLSD to REL and from REL to CLSD ?
i used this FM : ALE_INTERNALORDER_DB_CHANGE and
BAPI : BAPI_INTERNALORDER_SAVEREPLICA But not getting output .
Regards,
Sandeep
Maybe you are looking for
-
Flex 3 : How to capture right click on DataGrid ??
I am using Flex 3 . I have some data inside a DataGrid . Now when we the user right clicks on Datagrid Item , i want to show an Alert ??How to capture right click on DataGrid ?? Please suggest ,thanks
-
I'm clicking to open a pdf invoice so I can then print it. The windows box which is headed "YOu have chosen to open " "What should firefox do with this file?" 3 ck box lines 1) Save... 2) Open.... 3) Do this automatically PROBLEM is this box always k
-
.PDF Files blurred in InDesign CC 2014. They will still work if I try to do the same in InDesign CC. I prepare the original in microsoft word and save in a sub-directory as a .pdf. I then use the "Place" command to bring it into the document. Why doe
-
TCP data server or better solution?
Hi all, We upgraded our software system from 32 bit to 64 bit then LabVIEW is also upgraded from LabVIEW 2010 x86 to LabVIEW 2010 x64. However, one device of us does not have the 64 bit driver thus in order to make all the devices works seamlessly in
-
must i deactivate photoshop CC 2014 on my laptop if I will install windows ( instead of windos 7??