Standard function for settlement period
Hello
Does someone knows if there is a standard function that could define the settlement period based on a date (DD.MM.YYYY)?
The aim of this is to use it in report RKO7CO88 thanks to a link with table TVAR because we would like to run in background the settlement without having to change every month the variant.
Kind regards
Chris
Hello Srikanth,
create 2 variables ...one for fiscal year and another for posting period...
for the column which should take the previous period...right click on the variable and you will see offset...put in -1....but what if the user enters 2006.001...should it take 2005.012 ?? In that case you should write an abap code i think ....
Similar Messages
-
Standard report for settled internal orders
Hi All,
Is there any standard report available in Asset for settled internal orders.
We can able to see in S_ALR_87013019. But all Internal orders are appearing. I am not able to see settled orders. How to identify those... (Like flag color difference should be required for settled and open).
Thanx in advance.
Regs,
BhaskarHi All,
Is there any standard report available in Asset for settled internal orders.
We can able to see in S_ALR_87013019. But all Internal orders are appearing. I am not able to see settled orders. How to identify those... (Like flag color difference should be required for settled and open).
Thanx in advance.
Regs,
Bhaskar -
Standard function for SELECT???
I need to do a dynamic select, because i only know table name dynamically.
I found DB_UPDATE_TABLE for update operations, but i need a similar function for select??
Any ideas???Hi,
check this code...
For dynamic table name....
REPORT demo_select_dynamic_database .
DATA wa TYPE scarr.
DATA name(10) TYPE c VALUE 'SCARR'.
SELECT *
INTO wa
FROM (name) CLIENT SPECIFIED
WHERE mandt = '000'.
WRITE: / wa-carrid, wa-carrname.
ENDSELECT.
<b>For dynamic field list</b>
REPORT demo_select_dynamic_columns .
DATA: itab TYPE STANDARD TABLE OF spfli,
wa LIKE LINE OF itab.
DATA: line(72) TYPE c,
list LIKE TABLE OF line(72).
line = ' CITYFROM CITYTO '.
APPEND line TO list.
SELECT DISTINCT (list)
INTO CORRESPONDING FIELDS OF TABLE itab
FROM spfli.
IF sy-subrc EQ 0.
LOOP AT itab INTO wa.
WRITE: / wa-cityfrom, wa-cityto.
ENDLOOP.
ENDIF.
Regards
Sudheer -
Standard function for returninf time difference in days and hours.
Hello all,
Can somebody tell me whether there exists some standard function module which can calculate the time difference and returns the calculated time in the form of days and hours ?
e.g. the time difference between the date 1.12.2007 from 7.00 pm to the date 1.1.2008 till 9.00 pm is
30 days and 2 hours or 30 : 2.
answer as soon as possible.
Thanks and regards,
meThanks a lot ya..
thats an absolutely correct solution to my problem. ) -
Standard Field for Fiscal Period/Year
Hi
Is there any standard table field for <b>Fiscal Period/Year</b> so that i can use it to type my select-option field in the selection screen.
Thanks and Regards,
NavaneethHi,
Check field BKPF-GJAHR and BKPF-MONAT .
And/or BSEG-ABPER ( period ).
Erwan
Message was edited by:
Erwan LE BRUN -
I want to count the rows based on the date values and time periods of a date column. e.g.
08/01/01 00:00 - 01:30 (row count)
08/01/01 01:30 - 02:00 (row count) etc.
I'm using the case function to create the time periods from the date column but I'm getting a syntax error, 'missing keyword' at between. How can I code the case statement to create the time periods. The following is the sql code I'm using.
select TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
case START_TIME
when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
else 'unknown'
end as process_time,
count(*)
from V8_Event_Vw event
group by TO_CHAR(START_TIME, 'yyyy-mm-dd'), START_TIME
Thanks,
Tomselect TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
else 'unknown'
end as process_time,
count(*)
from V8_Event_Vw event
group by TO_CHAR(START_TIME, 'yyyy-mm-dd'),
case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
else 'unknown'
end
*untested (as if I really needed to say that) -
Function for accounting period
Hi guru,
do you know a function to know if the accounting period is open or closed?
thanksThis function module will fire message 201 if period is not open.
FI_PERIOD_CHECK -
Standard function for specified return
Hi,
I have an issue I want your help with.
This is only valid if numbers 5 or 6 are in the input.
I want to return the last 2 digits from the input parameter. for example. Input: 123456. Output: 56.
Or if there's only 12345 I want to return 5.
I can't do any substring because the input parameter could be whatever. example. 125. Example: 6.
Summary. I need a function that returns the last digits of the input parameter only if the input includes 5 or 6, or both.
Hope you understand.
Regards.Below UDF handles all possible inputs as per your requirement.
public String returnLast2Digits(String var1, Container container) throws StreamTransformationException{
if( var1.length()>1){
String str2 = var1.substring(var1.length()-2,var1.length());
if(str2.substring(0,1).equals("5")&& str2.substring(1,2).equals("6")){
return str2;
else if(str2.substring(1,2).equals("5") || str2.substring(1,2).equals("6")){
return str2.substring(1,2);
else{
return "";
}else{
if(var1.equals("5") || var1.equals("6")){
return var1;
} else{
return "";
Edited by: Baskar Gopal on May 17, 2011 2:54 PM -
Settlement of Investment Order - Auto creation of Sub asset for settlement
< MODERATOR: Message locked. Please post this in the [ERP Financials - Asset Accounting|SAP ERP Financials - Asset Accounting;. >
Dear experts
Request your help on Investment orders settlement.
We are doing settlement of Investment orders to sub asset numbers, where sub assets are created well in advance.
Our client want system to create sub asset numbers automatically, while doing the settlement of Investment orders itself.
Is it possible ?, If possible, please let me know, what are the settings I need to do to meet this requirement.
Thanks in advance
S. Habib Pasha.Hiya,
Go to IMG --> Controlling --> IO --> Actual Postings --> Settlement --> Automatic Generation of Settlement Rules.
There is no SAP Standard created for settlements to sub-assets, so you'll need to create one using option 4 there "User-Defined Strategies for Automatic Generation ...".
Once this is done, get an ABAP Developer to code the settlement rule by creating a custom project in that same transaction. The rule will be similar to the SAP Standard ones created in option 1 of the same node.
Once this is done, create strategy sequences for this, and assign to Order Type(s).
If your users can maintain a basic investment profile when creating the Order Master Data, the developer can be directed to pick that data (aka fields) for the creation of the subasset number.
Hope this helps.
Cheers. -
Hi
I am getting 6 digit number from the source.
ex 103924
in the target i want 1039.24
Please tell me is there any standard function for this and tell me how to use it.
regards
venkat.Hi,
You can use the FormatNumber API and formulate the no as per your requirment.
Or Best way if the no of digits are not fixed then Multiply the Source field by 0.01
Source Field--> Multiply (0.001 Constant) --> Target field
Thanks
swarup -
Mass maintenance for Settlement rule
Hi,
I want to maintain settlement rule of Network (cn22) and Internal order (Ko02). How can I carry out mass maintenence for these business process?
PLease mention steps or any transaction.
Thanks
SIMHI,
I don't know a standard transaction for settlement rules mass maintenance but you can use LSMW based on a batch-input recording for the changes you want to make.
Best regards, Christian -
E-Recruitment and Questionares (Standard function modules)
Hi,
On HR E-Recruitment I am trying to get a function which I can used to read answers from a given questionnaire. For example for every candidate applying for a requisition/position I want to be able to find which questionnaires they have completed and what answers they have given to a given question. I am hoping that there is a standard function for this. please point me in the right direction.
If there is no standard solution have any one of you guys done this sort of thing before.
Regards and many thanks in advance for your help.
Andy.Hello Tania,
using class cl_hrrcf_qa_bl is really the easiest way as otherwise you would have to read quite a number of tables. I have never had any substantial troubles w/ this class. You might either have not passed the correct parameters or miss some overall configuration, e.g. no candidate for your user.
Best approach here is in my opinion to check what the cx_hrrcf exception tells you. If you cannot see this in the debugger just add the following to your test program.
DATA:
lr_exc TYPE REF TO CX_HRRCF.
TRY:
* your code
CACTH cx_hrrcf INTO lr_exc.
cl_hrrcf_exception_handler=>write_exception_log( ex = lr_exc ).
ENDTRY.
This will write the error to the application log where you can check it in T-Code SLG1.
Best Regards
Roman
Best Regrads
Roman -
Do we have function for automatic post GI when post GR
Dear Guru,
Do we have standard function for automatic post GI when we post GR
or
Automatic post GR when we post GI?
We have this requirement but now we don't have a solution except create a new customize program.
Please kindly advice.
Thank you very much.
SaiyamanI'm sorry I did not explain the exactly requirement.
Actually we have pipeline material but I don't want to use material type PIPE.
So when we post GI the material (261 or 201), we would like to post GR 501 immediately before GI.
or
When we post GR 501 of that material, system will automatic post GI material 261 immediately.
Please kindly advice.
Thank you. -
Need a FM for gettng starting & ending date based on the settlement period
Hi,
I have to filter a database table based on the settlement period( IDENT3 ) and the field available is of date field. Can anyone give me a function module by which can calculate the starting date and ending date by providing the settlement period ( eg. AM- Monthly, AQ- Quarterly, AJ- Annually, etc ) and date.
Thanx in advance.
Regards,
Sumanth.Hi Sumanth,
Please use the function module 'DATE_CONVERT_TO_FACTORYDATE' to get the start date and end date for the particular factory calender.
For end date:
CORRECT_OPTION +
DATE sy-datum
FACTORY_CALENDAR_ID Aq(quaterly)
For start date:
CORRECT_OPTION -
DATE sy-datum
FACTORY_CALENDAR_ID Aq(quaterly)
According to sy-datum, it will calculate the Extreme interval .
Thanx,
Zenthil. -
The standard report for BOMs of a material with a selected period?
Hi Gurus
Is there any standard report for BOMs of a material with a selected period?Hi,
You will have to develop a report for your requirement,
The following tables will be used for the report
MAST-WERKS
STPO-MATNR
MARA-MAKTX
STPO-BMENG
STPO-POSNR
STPO-IDNRK
STPO-MAKTX
STPO-DATUV
STPO-MENGE
STKO-MEINS
STPO-AVOAU
Regards
Merwyn
Maybe you are looking for
-
UPDATE of column in parent only UPDATEs first row in DENORMALIZED child table
In the Repositiry in Designer 6i, I denormalized DESC1 column to pull the value of DESC1 in the parent table. The child table has four (4) records with matching foreign keys. When I go into my Form and update DESC1 in the parent, only the first of th
-
As above, all of a sudden, on one computer I cannot download from either the Canon 50D or 70D into LR 5.7.1. It will download on another computer as well as on this computer in an older version of LR (4.3). When I first turned on the computer this
-
Why won't my mid 07 iMac shut down?
My 07 keeps hanging up, won't restart or shut down without holding the power button down. I upgraded the ram, thought this would help, same outcome. Any ideas?
-
Hello, I cant play vidoes (ONLY) in facebook. Win7-64, Firefox 35.0, Flasplayer 16.0.0.257 Done everything like uninstalling, restarting system, restarting only firefox. It appears in facebook only a black window with white flushing stripes ans than
-
For FF19 with PDFs, can the yellow "Open With Different Viewer" pop-up bar be disabled?
Hi all, I really like the built in PDF viewer because search as a I type works with, thanks FF devs! But ... I get this yellow pop-up with many PDFs I view: This PDF document might not be displayed correctly and a button for Open With Different Viewe