Check condition through debugger
Dear All,
I have a problem with a condition how can I check this condition within sapscript through debugger.
Can I step in into this statemanet ?
Regards
M.M
I hear your frustration. Sapscript is not always a friendly tool.
Did you go into the sapscript debugger. Can you confirm that it is evaluating your condition as false and not that it is an issue with the text element itself?
If you still have the constant in your program, can you check the value of it within your sapscript to see that it came over ok?
One more suggestion, within sapscript, did you run form->check->texts to see if you can find any problems with your form. You may get some false hits, but sometimes you locate problems you didn't realize you had. I've seen more than a few developers spell endif wrong and they never are out of a prior if condition. (probably not the issue, but want to try to be thorough).
Becky
Similar Messages
-
Check condition on sub total line of ALV list
Hi All ,
Is it possible to check condition on the value of subtotal line in ALV list ,
I,e If the value of subtotal line is say greator than 100 I need to change the color of that line or change the text on the subtotal line .
I know how to change the subtotal text but i want to change with respect to value of the subtotal ,
Any input if this can be achieved will be great .
Thanks in adv .
Vinay
Edited by: vinay kolla on Jul 29, 2009 4:43 AMHi,
I donu2019t think there is any direct way to check the subtotal value in LIST display, try the following logic.
1. Use the event BEFORE_LINE_OUTPUT to check the subtotal value and accordingly change the text or colour of the line.
2. To use events in ALV, first get the events into a table through the FM REUSE_ALV_EVENTS_GET as shown
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = z_i_events.
SORT z_i_events BY name.
CLEAR z_wa_events.
READ TABLE z_i_events WITH KEY name = slis_ev_before_line_output
INTO z_wa_events BINARY SEARCH.
IF sy-subrc = 0.
MOVE 'BEFORE_LINE_OUTPUTu2019 TO z_wa_events-form.
MODIFY z_i_events FROM z_wa_events INDEX sy-tabix.
ENDIF.
3. Create a form with the name BEFORE_LINE_OUTPUT and do the coding to check the subtotals there.
Form BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO.
*The structure RS_LINEINFO will have u2018Xu2019 in the field rs_lineinfo-subtot for subtotals.
If RS_LINEINFO-SUBTOT = u2018Xu2019.
*Here try to find the totals by looping at your final internal table till rs_lineinfo-tabindex.
*Then based on this u can give the colour to the line.
*I think there is no other way to check the subtotal value.
Endif.
Endform.
Edited by: venkatesh PH on Jul 29, 2009 5:31 AM -
Check condition in J1IIN Transaction
Dear All,
I am creating Excise Invoice through J1IIN transaction against a Billing Document. Sometimes user unknowingly change the Posting Date in J1IIN. So I want that Posting Date in J1IIN must be equal to the Billing Date of Reference Billing Document.
So please tell if something is possible at Customization Level or not. If it is not possible then tell can it be done with ABAP (Some Userexit or like that) or not.
Please reply asap.
Regards,
VishalHi Ankur,
Can you please confirm whether I need to write this Check condition in FM 'J_1I7_USEREXIT_EXCISE_BEF_SAVE'?
As it is most important transaction, so I need to take great care in this matter.
Regards,
Vishal -
PRKO-2015 : Error in checking condition of instance on node:
I am using Oracle 10.2.0.4 2 node RAC on Solaris 10 x86_86.
I have renamed our test database using nid and have restarted the RAC instance.
The cluster is not able to identify the database eventhough I've tried adding the database and instances manually.
oracle@slsmtdrdbs01$srvctl add database -d SMTTSTDR -o /u01/app/oracle/product/10.2.0/db_1 -p /u02/app/oracle/smttstdr/spfilesmttstdr.ora
oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr1 -n slsmtdrdbs01
oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr2 -n slsmtdrdbs02
oracle@slsmtdrdbs01$srvctl status database -d smttstdr
PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02I see these messages in the CRS log which confirm tht the instances have been successfully regstered .
2009-06-24 15:47:49.823: [ CRSRES][781664] Resource Registered: ora.SMTTSTDR.db
2009-06-24 15:48:16.256: [ CRSRES][781666] Resource Registered: ora.smttstdr.smttstdr1.inst
2009-06-24 15:48:28.436: [ CRSRES][781672] Resource Registered: ora.smttstdr.smttstdr2.inst
But still I get the error messages with srvctl.
Think so this would need CRS reboot.
Wanted to confirm if there is any other way to fix this issue as there is a production database in the same box and rebooting the CRS would require downtime.
Any suggestions ?oracle@slsmtdrdbs01$crs_stat -t
Name Type Target State Host
ora....STDR.db application OFFLINE OFFLINE
ora....01.lsnr application ONLINE ONLINE slsm...bs01
ora....s01.gsd application OFFLINE OFFLINE
ora....s01.ons application ONLINE ONLINE slsm...bs01
ora....s01.vip application ONLINE ONLINE slsm...bs01
ora....02.lsnr application ONLINE ONLINE slsm...bs02
ora....s02.gsd application OFFLINE OFFLINE
ora....s02.ons application ONLINE ONLINE slsm...bs02
ora....s02.vip application ONLINE ONLINE slsm...bs02
ora.smtdgsl.db application OFFLINE OFFLINE
ora....l1.inst application OFFLINE OFFLINE
ora....l2.inst application ONLINE OFFLINE
ora....rddr.db application ONLINE ONLINE slsm...bs02
ora....1a.inst application ONLINE ONLINE slsm...bs01
ora....1b.inst application ONLINE ONLINE slsm...bs02
ora....r1.inst application OFFLINE OFFLINE
ora....r2.inst application OFFLINE OFFLINESMTTSTDR is the test database that was created by renaming SMTDGSL. SMTPRDDR is the production database.
I don't see imon files at all.
I went through the thread
Not able to start instance using srvctl
I checked the permissions for the CRS directories
oracle@slsmtdrdbs01$pwd
/u01/app/oracle/product/10.2.0/crs/log
oracle@slsmtdrdbs01$ls -l
total 4
drwxrwx--- 2 oracle dba 512 Nov 24 2008 crs
drwxr-xr-t 8 root dba 512 Nov 24 2008 slsmtdrdbs01
oracle@slsmtdrdbs01$pwd
/u01/app/oracle/product/10.2.0/crs/log/slsmtdrdbs01
oracle@slsmtdrdbs01$ls -l
total 88
drwxr-x--- 2 oracle dba 512 Nov 24 2008 admin
-rw-rw-r-- 1 root dba 37122 Mar 9 09:23 alertslsmtdrdbs01.log
drwxr-x--- 2 oracle dba 2048 Apr 30 13:14 client
drwxr-x--- 2 root dba 512 Nov 24 2008 crsd
drwxr-x--- 4 oracle dba 512 Nov 26 2008 cssd
drwxr-x--- 2 oracle dba 512 Nov 24 2008 evmd
drwxrwxr-t 5 oracle dba 512 Jun 25 10:00 racgslsmtdrdbs01 directory is owned by root. Is that an issue?
But racg is owned by oracle.
Output of the trace
srvctl status database -d smttstdr
432 [main] [10:5:53:34] [HAOperationImpl.runCommand:1223] CRS cmd is: /u01/app/oracle/product/10.2.0/crs/bin/crs_stat -u
ora.SMTTSTDR.smttstdr1.inst ora.SMTTSTDR.smttstdr2.inst
433 [main] [10:5:53:36] [RuntimeExec.runCommand:74] Calling Runtime.exec() with the command
434 [main] [10:5:53:37] [RuntimeExec.runCommand:76] /u01/app/oracle/product/10.2.0/crs/bin/crs_stat
435 [main] [10:5:53:38] [RuntimeExec.runCommand:76] -u
436 [main] [10:5:53:39] [RuntimeExec.runCommand:76] ora.SMTTSTDR.smttstdr1.inst
437 [main] [10:5:53:41] [RuntimeExec.runCommand:76] ora.SMTTSTDR.smttstdr2.inst
438 [main] [10:5:53:47] [RuntimeExec.runCommand:131] runCommand: Waiting for the process
439 [Thread-1] [10:5:53:48] [StreamReader.run:61] In StreamReader.run
440 [Thread-0] [10:5:53:48] [StreamReader.run:61] In StreamReader.run
441 [Thread-0] [10:5:53:96] [StreamReader.run:65] OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
442 [Thread-0] [10:5:53:97] [StreamReader.run:65] OUTPUT>
443 [Thread-0] [10:5:53:98] [StreamReader.run:65] OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
444 [Thread-0] [10:5:53:100] [StreamReader.run:65] OUTPUT>
445 [main] [10:5:53:103] [RuntimeExec.runCommand:133] runCommand: process returns 210
446 [main] [10:5:53:104] [RuntimeExec.runCommand:147] RunTimeExec: output>
447 [main] [10:5:53:105] [RuntimeExec.runCommand:150] CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
448 [main] [10:5:53:108] [RuntimeExec.runCommand:150]
449 [main] [10:5:53:109] [RuntimeExec.runCommand:150] CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
450 [main] [10:5:53:110] [RuntimeExec.runCommand:150]
451 [main] [10:5:53:111] [RuntimeExec.runCommand:155] RunTimeExec: error>
452 [main] [10:5:53:113] [RuntimeExec.runCommand:175] Returning from RunTimeExec.runCommand
453 [main] [10:5:53:114] [HAOperationImpl.runCommand:1232] signed exit value = 210
454 [main] [10:5:53:115] [HAOperationImpl.runCommand:1257] set status HA_RES_NOT_EXIST_ERR
455 [main] [10:5:53:117] [HAStatusOperation.run:127] Returned from executing the HA Operation
456 [main] [10:5:53:118] [HAStatusOperation.run:132] OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.in
st.
457 [main] [10:5:53:119] [HAStatusOperation.run:132] OUTPUT>
458 [main] [10:5:53:120] [HAStatusOperation.run:132] OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.in
st.
459 [main] [10:5:53:121] [HAStatusOperation.run:132] OUTPUT>
460 [main] [10:5:53:122] [HAStatusOperation.run:138] ERROR>
461 [main] [10:5:53:124] [LocalCommand.execute:56] LocalCommand.execute: Returned from run method
462 [main] [10:5:53:125] [ParallelServerHA.isRunningInstances:581] Stat operation failed. it could be a partial failure.
no exception thrown.
463 [main] [10:5:53:127] [StatusAction.internalDisplayInstanceStatus:708] displaying status for instance smttstdr1
464 [main] [10:5:53:129] [Instance.isEnabled:197] enabled is true
465 PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
466 [main] [10:5:53:143] [StatusAction.internalDisplayInstanceStatus:708] displaying status for instance smttstdr2
467 [main] [10:5:53:144] [Instance.isEnabled:197] enabled is true
468 PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02 -
BADI/User Exit for Checking Conditions in TRM Transactions
Hi All,
I have to check some conditions before saving the transaction FTR_CREATE. So that based on that condition it will be known that whether that transaction will save or not. I found some BADIs, but those are particularly working for Money market and derivatives. For my Req, I need a BADI which will check conditions for both Money market and Securities.
Exact req is, Based on Portfolio and PaymentAmount i have to restrict the transaction. Those will found in 2 tables VTBFHA and VTBFHAPO. But many BADIs doesnt contain VTBFHAPO.
If any one working on TRM can u help me out ?>
priya tavanam wrote:
> Hi Frds,
>
> I am using the FTR_TR_GENERIC Badi. In that one method is : EVT_TRANSACTION_SAVE_CHECK. In that one parameter is PI_PROXY_TRANSACTION. I want to get the attributes of Method A_TAB_CASHFLOW . That is : A_TAB_CASHFLOW~BZBETR.
-->whats ur code to read those values , it should be
lt_cashflow[] = PI_PROXY_TRANSACTION->a_A_TAB_CASHFLOW [ ] ' .
But i am unable to access this value in BADI. how access this. Can any one help me on this. -
Error while check printing through f-58
Error while check printing through f-58 is showing following for company code xxxx
1. Fiscal year variant z4 not defined or maintained for date 01/06/08 .
(Fiscal year variant Z4 not defined or maintained for date 01/09/2009
Message no. GMMASTERDATA108)
2.the payment made is not recorded in the SAP system.
when you see the print preview of check then in plase of amount and invoice date its showing as
Kindly refer tthe payment advice for the invoce details.
Is there any solution to this?
Regards,
Yojana.Hi,
i have check periods are open till 2010.
and parameters for fiscal year variant are also correct.
In FBZP i have check configuration there is no prob in it.
any solution on this?
Regards,
Yojana. -
How to update Ztable from Excel file and how to check conditions ,
HI this uday,
pls help me how can i update Ztable from Excel file and how to check conditions .
regards
uday
Moderator message: please (re)search yourself before asking.
Edited by: Thomas Zloch on Jul 13, 2010 12:00 PMHi
Use Fm : ALSM_EXCEL_TO_INTERNAL_TABLE.
L_INTERN : internal table with your fields .
make sure that the fields in the Excel should be formatted (as numeric , characher ) depending upon the data types .
LOOP AT L_INTERN INTO WA_LINTERN .
MOVE WA_LINTERN-COL TO L_INDEX.
ASSIGN COMPONENT L_INDEX OF STRUCTURE WA_INREC TO <FS> .
IF SY-SUBRC = 0.
MOVE WA_LINTERN-VALUE TO <FS>.
ENDIF.
AT END OF ROW . "#EC *
APPEND WA_INREC TO IT_DATA. "
CLEAR WA_INREC.
ENDAT.
ENDLOOP.
Regards
Swapnil -
Checking conditions in SELECT statement
Hi All,
I am relative new to ABAP and I would like to ask a question about checking conditions in SELECT statement in the "WHERE" part.
There are two checkboxes at the selection screen and each should disable one of conditions (marked with two stars) in the SELECT mentioned below.
My question is, whether there exists an option how to solve this problem without using solution like:
IF checkobx1.
SELECT (without one condition)
ELSEIF checkbox2.
SELECT(without other condition).
ELSE.
SELECT (with both conditions)
SELECT qprueflos qherkunft qaufnr qsa_aufnr qmatnr qwerkvorg
qpastrterm qpaendterm
qverid qobjnr vobjnr AS objnr_fa vauart
FROM qals AS q INNER JOIN vkaufk AS v
ON qaufnr = vaufnr
INTO CORRESPONDING FIELDS OF TABLE gt_qals
WHERE q~prueflos IN s_pruefl
AND q~stat35 EQ space
AND q~werk EQ loswk
AND q~herkunft IN s_herk
AND q~offennlzmk EQ 0
AND q~offen_lzmk EQ 0
AND q~pastrterm IN s_startt
AND q~paendterm LE s_endt
AND v~auart IN s_auart. "('ZCPA', 'ZCPK', 'ZCBA').Hi,
With this, I think u can directly read into WHERE clause
IF checkbox1.
v_where = '& BETWEEN ''&'' AND ''&'' '.
REPLACE '&' WITH key_field INTO v_where.
REPLACE '&' WITH field_LOW INTO v_where.
REPLACE '&' WITH field_HIGH INTO v_where.
CONDENSE v_where.
ELSEIF checkbox2.
v_where = '& BETWEEN ''&'' AND ''&'' '.
REPLACE '&' WITH key_field INTO v_where.
REPLACE '&' WITH field_LOW INTO v_where.
REPLACE '&' WITH field_HIGH INTO v_where.
CONDENSE v_where.
ENDIF.
select * into corresponding fields of table ITAB
from (table_name)
where (v_where).
In this key_field is your fieldname in the where clause and field_low, field_high are range of values.
If i write static query it looks like this
RANGES: MATNR1 FOR MARA-MATNR.
MATNR1-LOW = MATNR_LOW.
MATNR1-HIGH = MATNR_HIGH.
MATNR1-SIGN = 'I'.
MATNR1-OPTION = 'BT'.
APPEND MATNR1.
select * into corresponding fields of table itab
from mara where matnr BETWEEN 'M100' AND 'M200'.
Hope it helps u
thanks\
Mahesh
Edited by: Mahesh Reddy on Jan 30, 2009 11:23 AM -
Automatic Check updation through Payment
Dear Friends,
How to do Automatic check updation through payment please give the process steps and Tcode
with regards
Raghavendra.Hi,
Create Check lot in FCHI
Then make the Payment through F-58.
In Initial screen given company code, Payment Method,house bank, account id check lot then press payment.
Automatically the check number will be allotted from check lot sequentially.
Do not forget to manually fill the assignment field with check number for BRS
Edited by: lolu jo on Oct 28, 2011 3:53 PM -
Find Check number through GL account
I need to find the check number through running the GL.
i have tried to set the check number field in FBL3n but it doesnt work.Any expert have an idea to get the information, i need it once only if we can extract the data from tables then it will be great or comparing two or more table and extracting the data would be a great help!
I have tired running the fbl3n report on GL and ran fbl1n on for all vendors, compared it through excel but it doesnt help because document whose MIRO was done doesnt contain check number on fbl1n.
any help??Hi,
here 2 options are their ,
1. Use FBL1N - select dynamic selection - Reconciliation acct -- give GL account number - and Give vendor number from- to and give Company code - select all cleared items - execute
then select change layout - select check number field - then you can able to view check numbers .
2. Use FCHN - give company code , house bank , account ID - date from - to and execute -
then go to change layout - and add vendor number - G/L Account Number for Our Bank Acct -
then you can able to view - vendor and Bank GL account
Thanking you
Mahesh -
How can I put check conditions when using Function 'LDB_PROCESS'
Hy experts,
I am using LDB_PROCESS and I don't know how to use check conditions in the callback forms.
for example:
FORM CALLBACK_QALS USING NAME TYPE LDBN-LDBNODE
WA TYPE QALS
EVT TYPE C
CHECK TYPE C.
CASE EVT.
WHEN 'G'.
MOVE-CORRESPONDING wa to ITAB_QALS.
APPEND ITAB_QALS.
ENDCASE.
endform. " CALLBACK_QALS
Have anyone an example of how I can use check conditions in this type of form???
thx in advanceHi
U should indicate in which node (the GET) you need to check the condition, you form should have the following interface:
FORM <formname> USING <nodename> LIKE LDBCB-LDBNODE
<workarea> (LIKE ...)
<mode>
<selected>.
So the code should be:
CHECK <WORKAREA>-FIELD = ............
Max -
Read table and checking condition in PAI
Hi,
I have a requirement where I need to check and compare with (Custom table) Bankn with Partner Bank`s bankn.
I have wrote a code in PAI like this.
MODULE CHECK_BANKN INPUT.
Data: l_bankn like (Custom table)-bankn.
select bankn from (Custom Table) into l_bankn
where recno = g_recno.
IF NOT g_head-bankn IS INITIAL.
Read table i_bvtyp with key bankn = i_bvtyp-bankn .
IF l_bankn <> i_bvtyp-bankn.--------->" Comparison of (custom table) Bankn with internal table I_BVTYP-BANKN
MESSAGE w022 WITH text-w06.
ENDIF.
ENDIF.
ENDMODULE.
My Read Table statement is seems to be wrong and my checking condition is also wrong.
So, how to resolve this?
regards,
KiranHi Kiran,
If you observe your read statement, you are comparing the field with it's own table field.
Read table i_bvtyp with key bankn = i_bvtyp-bankn .
Untill unless you read I_BVTYP, i_bvtyp-bankn will be initial and you cannot find the matching record with Null-Value.
So, I think you need compare with l_bankn.
Read table i_bvtyp with key bankn = i_bankn .
Then you can directly raise a message using SY-SUBRC value.
Read table i_bvtyp with key bankn = i_bankn
if SY-SUBRC <> 0 .
<MESSAGE>
endif.
Regards,
Vijay -
Check Condition when to create Project
Dear expert!
Now, I'm getting some issue about Checking condition when to create project.
- When I create a project with coding mask '-XXXX-00-00-00-00-000' I want company code to have value 1000. If I enter another company code then the system will display message "you have to enter company code is 1000"
Really, I don't know how i have to do.
Help me, please!
Best regards, Huy!Dear, Search the forum, this type of queries are raised many times before....Search it you will find it....
Also, before posting any questions please search the forum, if you dont find it then you create a new thread. -
Action condition through user status as well as date profile
Hi All,
My scenario is like action will be triggered through date. I have the scenario like we hv to create the exchange order and after that we hv to create the sales prder. The maximum time gap betewwen the exchange order and sales order is 1 month. If customer does not return the goods within 21 days we hv to send a mail to customer saying "you have another 7 days to return the product" means before 7 days we hv to send a warning mail to customer. Again if the customer send the old goods then we will make a fresh order on the reference on exchange order. Can u tell me how can I achieve this through action peofile. That is condition will be date management and user status.
Status is opened state. Before 7 days mail will be sent to customer. If customer does not return the product the status will be cancelled.
How mail will be sending to customer automatically after 21 days to return the products?
Your help will be appreciated.
Thanx
ChinmayaHi Madhu,
Thanx for ur valuable time. I know the configuration of action profile and sending the mail to customer. But my requirement is suppose I create the exchange sales order today, the customer is supposed to return the product within 1 month. If customer does not return the product within 21 days I should send a warning mail on 21st day. I know to create everything, but my requirement is if I create the exchange order today, how automatically mail will go on 21st day to the customer. I created the action profile, created the date profile. But in action condtion when I am going to give the condition I am not seeing any condition that should executed through Date profile. I can execute the conditon based on user status, system status, priorityetc. But I am not seeing any condition which will be executed through Date profile.
Can u tell me how can I maintain the condition through Date profile. I have assigned the date profile to the Transaction.I have assigned also status proifle, Action profileetc whatever needed to be done.
Please help by giving valuable answer in step by step.
Thanx
Chinmaya -
In OKC7, step 001, there is a check: BSID Account and Cost Center Validation. but when I doule click it, it doesn't show a user exit,
how can I view the content of "BSID Account and Cost Center Validation",
normally we can see check condition looks like: G/L = '42000020'
but this CO validation rule is strange, anyone can explain, thankscancel
Maybe you are looking for
-
HI Gurus, I deleted entire ODS data.And now want to do reinit load.But i am getting below error. From where I can see and delete delta queue.How to do that resetting status and all.. Error for init package : Deltas have already been loaded for the in
-
Hi all.. I am using Drive Genius to find all duplcates in my apple loops folder in order to remove from my system. My question is, after I delete the dupes can I just reindex or do I have to delete any other files except the dupes to avoid still hav
-
So very confused... HELP PLEASE
Hey everyone, I'm having a rather irritating problem. I had the MobileMe trial for a while, and it just expired. I had it set to automatically sync my bookmarks and all that stuff.. Now for some reason -- related to mobileme or not -- once the trial
-
How to do LDAP/OID as datasource in OBIEE
We have a requirement to read data from LDAP in the repository and expose the imported structure to business model and inturn in presentation area. So that we can create simple OBIEE report using the LDAP data. 1. How to add LDAP as datasource/databa
-
I just downloaded Adobe Flash Player 14.0.0.125 to my MAC computer, operating OSX 10.7.5. It shows that it is installed, but where is it located? When I look in Applications, it shows I have Adobe Flash Player 9.0.124.0. I searched for the version 14