Validating the Program Run Date on selection screen
Hi ,
REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.
Finally date should be validate through any table as per my concern.
Could please anyone tell me that which table i have to go for validate the above field.
Regards,
sud
>
sudsap wrote:
> Hi ,
>
> REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.
>
> Finally date should be validate through any table as per my concern.
>
> Could please anyone tell me that which table i have to go for validate the above field.
>
>
> Regards,
> sud
REGUH-LAUFD is the date that the payment run has created. There is no such foreign key check for this date. If you want, you create your own table and do your checks but not advisable.
What is your requirement anyway?
Similar Messages
-
How to change the caption in data entry selection screen??
using cats0009 i populated the data into wbs desc and a/a desc but
but i am not able to change the name(caption of additioanl field) as 'wbs description'. and A/A desciption.
can anyone please help me out how to do this...You don't mean selection text do you? Can you be more specific?
-
Setting only the TO field on the Created on Field in Selection screen to Current date
Hello,
We have a requirement to Set only the To date in the Created on Field in Selection screen to the Current date, I have tried through Dynamic variable option to set the Date calculation but I am able to see Options to set the Current date to From or From and To Created on Date fields instead of setting the Current date only to To created on Field.
We are in 4.7 and are not supported with user defined variables, Appreciate your inputs on this.
Thanks and Regards
Mohammed Roshan>
sunitha j wrote:
> Hi ,
>
> It would br gr8..if u could give some more info about the usage of this class..i mean if i hav to implement it in my program....wat is the necessary data that needs to b copied...
>
> Thanx,
> Sunitha
what Text field you want to change.
Since you are working with Dynpros , you have to split the screen in two parts, and one for the Showing differenet fonts and other your normal Dynpro information.
you need to use the Method ADD_TEXT Did you check the program DD_STYLE_TABLE. -
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
HI,
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
thanks,
samba.By selection screen, what do you mean? There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component? Are you wanting to call a standard transaction via ITS - SAPGUI for HTML? Please provide more details to your question.
-
Reports-- to validate the field values in a selection screen
How to validate a Particular field ..... in the selection screen ...!
that is how to determine the values of the field in the selction screen .....Hi,
Check the code below:
<b>at selection-screen</b>.
SELECT SINGLE * FROM MSEG WHERE
MBLNR = IMBLNR.
IF SY-SUBRC <> 0.
MESSAGE E016(PG) WITH 'Please select valid Material Document Number'.
ENDIF.
I used it in my program.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
How can we let the program run in backgroud automatically?
normally,we need to find peak off time run big program
that read pooled table and slowly.
How can we let the program run in backgroud automatically?
BTW:before that pop a window just give runner a notice.Here is an example, try this one.
REPORT ztest.
PARAMETERS: p_vbeln LIKE vbak-vbeln,
p_bkrun NO-DISPLAY.
DATA: ls_vbak LIKE vbak.
DATA: v_answer,
v_jobcount LIKE tbtcjob-jobcount.
IF p_bkrun IS INITIAL.
*-- not background processing
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
textline1 = 'This may time out.'
textline2 = 'Do you want to run in background?'
titel = 'Warning!!!'
cancel_display = space
IMPORTING
answer = v_answer.
IF v_answer = 'J'.
*-- run in the background
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = 'ZTEST'
IMPORTING
jobcount = v_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
*-- submit the program in the background
SUBMIT ztest
WITH p_bkrun = 'X'
WITH p_vbeln = p_vbeln
USER sy-uname
VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
*-- close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = v_jobcount
jobname = 'ZTEST'
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
EXIT.
ELSE.
CLEAR v_answer.
ENDIF.
ENDIF.
CHECK v_answer IS INITIAL.
SELECT SINGLE * FROM vbak
INTO ls_vbak
WHERE vbeln = p_vbeln.
IF sy-subrc <> 0.
WRITE:/ 'Invalid Order Id.'.
ENDIF.
END-OF-SELECTION.
CHECK v_answer IS INITIAL.
IF p_bkrun IS INITIAL.
WRITE:/ 'Here is the result running the program in foreground.'.
ELSE.
WRITE:/ 'Here is the result running the program in background.'.
ENDIF.
WRITE:/ ls_vbak-vbeln,
ls_vbak-vkorg. -
How to add program documentation icon on selection screen
Hi All,
Please let me know how to add program documentation icon on selection screen.
Thanks
JogTHis is pretty straight forward, in se38, enter program name, click change. Now click Go To, Documentation. Enter the documentation on this screen, save and activate, now run the program, the icon will be there.
REgards,
Rich Heilman -
How to get the last run date.
We intend to develop an incremental data load mapping using this strategy:
1) The mapping reads the date it was last run from an auxiliary table.
2) It selects from the source only those rows that were inserted or updated after said date.
3) Then, a post-mapping process updates the last run date in the auxiliary table, using SYSDATE.
The problem with this logic is that there is a gap: if the mapping starts running at 1:00 and ends at 2:00, the rows that are inserted in between will never be loaded.
Is there any way to get the value when the mapping started running? Is there a better way to do this?
Any help would be appreciated.
Juan AlgabaThere is always the possibility of some record updates slipping through the crack if you are depending on dates unless you are very carefull. All of the audit tasks that the OWB-generate code performes take time. Any pre- or post- process that needs to run takes time. So which date is the best cuttoff point to equate to "when the last run of the merge (or insert or update) statement completed"?
Plus, how do you handle reloads if the previous load failed and your mapping had incremental commits?
Is your source on another server? If so, are the dates in perfect synch? The audit tables populate with sysdate of your runtime schema. Is that the same as the sysdate on your source remote database?
I would qualify my query to look for all updates since the start of the last run that finished successfully - adjusted if neccesary for sysdate differences if it is on a remote schema. And make sure that your code handles any reloads gracefully in the event that this brings back data that you have already loaded once. .
Because we use Oracle Streams to load a local staging area, we also have custom code to dump the primary keys of all data changes to utility staging tables while streams is updating the local copy. So, our Person table has an st_Person_delta table that just holds the primary keys that have been updated by Streams since the last ETL run.
During datamart load we disable the streams apply to stabilize our environment, and join these lists of pk's to their source tables to drive our ETL. So we only select data where Streams has performed an update to the row since our last run. When we are done our ETL, we truncate the primary key staging tables, and then turn streams back on to start loading up our new delta into our staging tables again..
The ETL gets pretty complex though when many tables join together in one mapping and you need to check all possible source table deltas to see if any of them got updated to determine the delta for a given dimension or fact record, but it works great once you get it all done. -
Report Painter: How to change the order of lines in selection screen
Dear Gurus on Report Painter,
how can I change the order of the lines (where the values for the variable selection of my cost center report are entered) in the selection screen of a report painter report? The Selection screen looks awful.
Is there also a possibility to add another description to each line of the selection screen?
Thank you very much for your advice.
Best regards TimoI am afraid you have much choice in choosing the order of the selection parameters. However, with the developer's access you may.
This is how!
Step 1: If it is a standard report, copy to your own report. and assign it to a report group. and execute.
Step 2: When you execute, and the selection appears, go to systems>status and here , copy the program name (it may look something like GP46LP6VEDORBSA2IHWYSR4TL58020)
Step3: Go to SE38 and enter the above derived program name with a view to re-arrange the line withing the program, with reference to selection parameters.
For example: I have a selection screen in the following order:
Controlling area
Fiscal Year
From period
To period
Plan version
Cost center group
Or value(s)
Cost element group
Or value(s)
The corresponding program that drives this order is in the program and would look like this,
SELECTION-SCREEN BEGIN OF BLOCK VALUE_SELECTION
WITH FRAME TITLE TEXT-003.
<b> PARAMETERS: $1KOKRE LIKE CCR1S-KOKRS .
PARAMETERS: %1KOKRE LIKE CCR1S-KOKRS MODIF ID IN4.</b>
<b><i> for controlling area</i></b>
PARAMETERS: $1GJAHR LIKE COSP-GJAHR .
PARAMETERS: %1GJAHR LIKE COSP-GJAHR MODIF ID IN4.
<b><i> for fiscal year</i></b>
PARAMETERS: $1PERIV LIKE COSP-PERBL .
PARAMETERS: %1PERIV LIKE COSP-PERBL MODIF ID IN4.
<b><i> for period from</i></b>
PARAMETERS: $1PERIB LIKE COSP-PERBL .
PARAMETERS: %1PERIB LIKE COSP-PERBL MODIF ID IN4.
<b><i> for period to</i></b>
etc.
PARAMETERS: $1VERP LIKE COSP-VERSN .
PARAMETERS: %1VERP LIKE COSP-VERSN MODIF ID IN4.
PARAMETERS: $1VALUTP LIKE CCR1S-VALUTYP MODIF ID IN4 .
PARAMETERS: %1VALUTP LIKE CCR1S-VALUTYP MODIF ID IN4.
SELECTION-SCREEN END OF BLOCK VALUE_SELECTION.
......... set variables ..............................................
SELECTION-SCREEN BEGIN OF BLOCK SET_SELECTION
WITH FRAME TITLE TEXT-004.
PARAMETERS: $1KOSET LIKE RKSB1-KSGRU.
PARAMETERS: %1KOSET LIKE RGSBS-SETNR MODIF ID IN5.
SELECT-OPTIONS _1KOSET FOR CCR1S-KOSTL .
PARAMETERS: $1KSTAR LIKE RKSB1-KAGRU.
PARAMETERS: %1KSTAR LIKE RGSBS-SETNR MODIF ID IN5.
SELECT-OPTIONS _1KSTAR FOR CCR1Z-KSTAR .
SELECTION-SCREEN END OF BLOCK SET_SELECTION.<i></i><b></b>
If you want fiscal year to appear first, you try just copying the coding relating to fiscal year just above the coding for Controlling area.
Extend the same logic for what you may want to get. -
Is it possible to rearrange the order of SAP STD Selection Screen?
Hi.
Is it possible to rearrange the order of SAP STD Selection Screen?
Example:
IW69 has Location data selection at bottom of screen.
Is it possible to move that to top of the selection screen?
We are on ECC6.0.
Thank you,
Brett.Hello Brett
You may try to use GuiXT:
[Adjusting Transactions Using GuiXT|http://help.sap.com/saphelp_sm32/helpdata/en/89/91b9db194f11d5b3a30050dae02d7c/content.htm]
Regards
Uwe -
When a Job has a Chain, the next run date can be skipped
I have read more than once in this forum that if a job is still running when the next run date arrives, the job is internally queued and runs as soon as the previous run is finished. The following code was posted to demonstrate :
begin
dbms_scheduler.create_job('j1',
job_type=>'plsql_block', job_action=>'dbms_Lock.sleep(70);',
repeat_interval=>'freq=minutely;bysecond=0',enabled=>true);
end;
/On both 10.2.0.4 and 11.2.0.1, the job starts every 70 seconds. Fine.
Now, if I create a job using a PROGRAM and a CHAIN, then the job skips every other run date, so it runs every two minutes. Here is my test case:begin
dbms_scheduler.create_program (
program_name => 'P1',
program_type => 'PLSQL_BLOCK',
program_action => 'DBMS_LOCK.SLEEP(70);',
enabled=>true);
dbms_scheduler.create_chain (chain_name => 'C1');
dbms_scheduler.define_chain_step('C1', 'STEP1', 'P1');
dbms_scheduler.define_chain_rule ('C1', 'TRUE', 'START STEP1');
dbms_scheduler.define_chain_rule ('C1', 'STEP1 COMPLETED', 'END STEP1.ERROR_CODE');
dbms_scheduler.enable('C1');
dbms_scheduler.create_job (
job_name => 'J1',
job_type => 'CHAIN',
job_action => 'C1',
repeat_interval => 'freq=minutely;bysecond=0',enabled=>true);
end;
/Is this a bug? I need the chain because my real job has two steps, so is there anything I can do to get the "non-skipping" behavior with a chain? Thanks in advance,
Stew AshtonReplying to myself :)
While walking to my car, I realized that my "chain" logic could be replaced by an anonymous block with two lines in it!
I guess I outsmarted myself by trying to use all the appropriate features of the Scheduler instead of doing things more simply, but I still think the behavior I observed is incoherent.
I am leaving this question "unanswered" since I won't be able to test my simpler approach until Monday.
Stew Ashton -
Area of memory allocation each time the program runs
the syntax
DATA f TYPE C VALUE 'A' .
Actually allocates a memory area say it is 1000 -
now this is true for the time the program runs-----my question is when the program runs for the second time does the same location 1000 gets allocated or
a new memory say5000 gets allocated?HI
When prog runs it allocates memory and when it finishes it will make that memory free. Its not necessary that it always allocates same memory location. No need to bother about memory address SAP is not like C.
Aditya -
Help find the Last run date from previous month
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKWelcome to the forum!
user2931503 wrote:
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
Normally, the "previous" month means the month before the current month. In April, the previous month is March.
By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKTry this:
WITH got_real_date AS
SELECT TO_DATE ( SUBSTR (date_ran, 1, 14)
, 'MM/DD/RR-HH24:MI'
) AS real_date
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
SELECT TO_CHAR ( MAX (real_date)
, 'MM/DD/RR-HH24:MI'
) AS last_date
FROM got_month_num
WHERE real_date < (
SELECT TRUNC (MAX (real_date), 'MONTH')
FROM got_real_date
;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM -
How to schedule the background job using current selection screen field val
Hello Friends,
How to schedule the background job using current selection screen field values.
after completion of the job the spool should be sent as a mail to SAP Inbox.
Is there any way to create the variant dynamically by reading the current selection screen values.
Thanks,
RaviHi,
To get the variant details you can use teh following FM.
'RS_VARIANT_CONTENTS'.
Regards,
Ankur Parab -
To fetch data on the basis of last program run date and time
Hi all,
My query is as folows:
I am selecting BOM components from STPO table on the basis of some criteria.
My requirement is to select only BOM components which are newly added or created after last program run,i.e. STPO-AEDAT and STPO-ANDAT are greater than last program run.Here i fetched last program date from customised structure(client specific) which has date field also,and compared with aedat and andat in STPO records.But how can I connect it with last run time as there is no such time field in STPO table.I need to fetch this data on the basis of last program run(time+date).
Please help me..it's crucial,
Thanks in advance,
MeenaHi,
We had a very similar requirement.
We developed a custom-solution for this.
Create a Z-Table and update it with your progname, date and time.
Whenever the BOM was changed, it generated a change number ( this has to be done by the user)
You can get the date and time from the change Number Table AENR and compare it with the timestamp in Z-TABLE
Hope it helps,
RJ
Maybe you are looking for
-
User in blackberry manager more than once
I have a user that has two blackberries and would like to receive email to both of these from the same email account, Can I do this? will blackberry manager let me have the same user twice? Thanks for the responses
-
Yahoo messenger no longer shows up in yahoo mail after Ver 9 update.
I use my yahoo mail for email and yahoo messenger. It worked well until the update to version 9 of Firefox. The messenger part does not show up in my yahoo email now. Other people can still see that I am online as they will send me an IM and the tab
-
IPads in School and Apple's Education Discount
I'm a high school art and photo teacher and I bought the iPad the before the start of school year. I had also bought a 15 inch MBP and 17 inch iMac retiring an old G4 tower. I use the iPad every day showing examples of artwork, videos on art, referri
-
MSS: Team View Data drop down auto refresh
Hi all, I'm trying to figure out if it is possible in the Team View for MSS to be able to automatically refresh the Team View when the drop down changes. Right now, when a user chooses the Display drop down (Employees or Org Units and Positions, in
-
Want Content Organizer to overwrite files from Drop Off library not add new.
If I put a file into the Drop Off library that already exists in the target library it appends a set of random characters to the filename and uploads as a new file. I want to overwrite the existing file (maintaining the Document ID) so that we can pr