How to find the group name for a section programatically?
I have these display formulas that are being repeated in each group footer. The only thing that changes are the group names.
How can I find the group name for the current section?
The bolded(or starred) items are what I'm trying to create a generic function for.
Ontario
Bob
1000 Sales Other
2000 Random Billing
200 Phone Billing
*Total for Bob* 3200
Sally
2000 Sales Client
1000 Random Billing
300 Cell Billing
*Total for Sally* 3300
*Total for Ontario* 6500
Thanks in advance,
J
I'm not sure if the GroupingLevel or GroupNumber fuctions will help. (There description in the on-line help leaves much to be desired, IMHO...)
If not, you could try adding formula fields to each level that sets a global variable to tell your other formula fields what level it is on. If you only have one or two other formulas, and only one or two groups, this really wouldn't be a whole lot easier. But if you had a lot of groups or a lot of formula fields that you want to make "group independent" it could help.
So for each footer, create a formula field like (basic syntax):
WhilePrintingRecords
global geoupLevel as String
groupLevel = "Province"
formula = ""
(changing the name given to groupLevel for each footer). Then in your "generic" formula you could put something like:
WhilePrintingRecords
global groupLevel as string
select case groupLevel
case "Province"
formula = "Total for " + {Province}
case "Name"
formula = "Total for " + {Name}
else
Formula = "Totals"
end select
HTH,
Carl
Similar Messages
-
How to find the role name for the trasaction
Dear Gurus,
Kindly assist me to find the role name to which a perticular transaction was assigned.
For example:- I need to find the role name for SU01, SUIM, SE38...etc
Thanks&Regards,
Kalyan.Hi Kalyan,
Use SUIM T-code to analyse User Vs Roles and Roles Vs T-Codes. Then your problem will be solved.
Regards,
Hari.
PS: Points are welcome. -
How to find the program name for LSMW
hi experts,
i have created a LSMW for uploading data in HR.i hope there will be a ABAP progarm automatically generated from it .where i can find the program name .
i have succesfully completed all the 14 stepas and data is uploading comfortably .
thanx in adavancehi,
just do liek this to know abt the program name,
select system at the menu in your lsmw,
select status ,
in popup u'll get the proram name and all other related details.
reward points if useful,
regards,
seshu. -
Regarding finding the table name for a field in R12 forms
Hi all,
I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
Thank you,
rajPlease see these threads.
How to find table name in ebs
How to find table name in ebs
E-Business tables
E-Business tables
Thanks,
Hussein -
Pls help me to find the smartform name for RMA REQUEST(RMA)
Hi Experts,
Pls Tell me how too find the smartform name for RMA REQUEST(RMA)
Pls help
Thanks and regards
JayaWHat is RMA REQUEST form please ellobrate your query
the smrat form tcode is SMARTFORMS.....you can try -
How to find the BTE event for FBCJ transaction code
Hi All,
i need to find the BTE event for Finance related transaction codes.i checked in the SWEL transaction code, didnt find any event triggered and the standard BADI doesnt suite my requirement.The transaction code which i tried is FBCJ.can anyone help me how to find the BTE event for the above mentioned transaction.
Thanks in Advance,
lokesh kumar.KHello Lokesh,
The following is one of the process of finding a BTE and implementing it.
(1)Goto transction FIBF .Execute it with Attribute type = 'A'. Then in the menubar Environment->Info System (P/S )
Go through the list of BTE's available with the description available beside.
(2)Select the BTE you want to implement.
(3)Press button Sample function module
(4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
(5)Edit the code in the new function module
(6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
(7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
Hope this will help.
Regards,
Samson -
How to find the group ids from which the mail has been sent
Hi,
We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
Is there any way to find through which group ids the mails have been sent.
Tehe details showing as the mail has been sent by Batchusr.
Please suggest how to find the group id from where the the mails have been triggered.
Regards,
Jena.Hi
This is not helpfull
If you open any notification QM03, there you will get tab " Action Log"
If you click on action log , there are two fileds
Date and time for task release
I want to fetch these fileds in one of Z report.
I am unable to find table name for these two fileds
Task release Date
Task release Time
Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range? The user want to run the report by QN change date as well. -
How to find the user exit for a screen..
Hi,
plz help me how to find the user exit for a screen..?
Regards
AnbuHi,
check this program this will give you the list of user-exit and BADI for the perticular Tcode.
REPORT zuserexit_badi.
TABLES : tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
sxs_attrt ,
tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode,
p_pgmna LIKE tstc-pgmna .
DATA wa_tadir TYPE tadir.
START-OF-SELECTION.
IF NOT p_tcode IS INITIAL.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
ELSEIF NOT p_pgmna IS INITIAL.
tstc-pgmna = p_pgmna.
ENDIF.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name EQ enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
SELECT * FROM tadir INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object IN ('SMOD', 'SXSD')
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(105) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
SORT jtab BY object.
DATA : wf_txt(60) TYPE c,
wf_smod TYPE i ,
wf_badi TYPE i ,
wf_object2(30) TYPE c.
CLEAR : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT jtab INTO wa_tadir.
AT FIRST.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Enhancement/ Business Add-in',
41 sy-vline ,
42 'Description',
105 sy-vline.
WRITE:/(105) sy-uline.
ENDAT.
CLEAR wf_txt.
AT NEW object.
IF wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
ELSEIF wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
ENDIF.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 sy-vline,
2 wf_object2,
105 sy-vline.
ENDAT.
CASE wa_tadir-object.
WHEN 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE modtext INTO wf_txt
FROM modsapt
WHERE sprsl = sy-langu
AND name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WHEN 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
SELECT SINGLE text INTO wf_txt
FROM sxs_attrt
WHERE sprsl = sy-langu
AND exit_name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ENDCASE.
WRITE:/1 sy-vline,
2 wa_tadir-obj_name HOTSPOT ON,
41 sy-vline ,
42 wf_txt,
105 sy-vline.
AT END OF object.
WRITE : /(105) sy-uline.
ENDAT.
ENDLOOP.
WRITE:/(105) sy-uline.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
DATA : wf_object TYPE tadir-object.
CLEAR wf_object.
GET CURSOR FIELD field1.
CHECK field1(8) EQ 'WA_TADIR'.
READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).
MOVE jtab-object TO wf_object.
CASE wf_object.
WHEN 'SMOD'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
WHEN 'SXSD'.
SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Reagards,
Bharat. -
How to find the text id for the text in the sales order
Hi all,
How to find the text id for the item-text in the sales order?
There are different Text available in the sales order under item like Warehouse instruction, CSR instruction...
I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
Table TTXID contains the validation of the Text id.
Please help me in knowing the way to identify the text-id from the text list..
Thanks foryour help
Suresh KumarU can fetch the texts for the items using
Read_text.
Example:
g_f_tdname = xvttp-vbeln.
g_f_obj = p_obj.
g_f_langu = 'DE'.
REFRESH g_t_lines.
CLEAR g_t_lines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The Required fields are,
Text-id ,language,name,object.
Let me know if you further require help.
Regards -
How to find the File name using the FTP Adapter
hi all,
how to find the File name using the FTP Adapter with BPEL.
RegardsFound the solution for this.
First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
Thanks for the posts -
How to find the workflow admins for all costcenters ?
Dear SRM gurus
We are using Classic scenario with N th step workflow with BADI.
we have a requirement.
How to find the workflow admins for the particular costcenters.
we used HRV1222A where ATTRIB EQ <Z attribute>(This is our own attribute to group all the costcenters)
used table HRP1001 to find the Admins but results are not correct because it is not showing my user id(I have all authorisations).
Is there anyway to find all the admins for a cost center(users are more than 7000+)
can anybody send work flow related presentations or cookbook
Thanks in Advance.
srinuhi
I have not received any thing.Please send again
[email protected]
[email protected] -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How to find the search help for the parameters stmt in a report
hi
how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statementI am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition "Matchcode Object"
Parameter: a type i matchcode object 'Search Help Name'
Search Help name should be in single quotes.
Regards,
Anubhav.
P.S: Award Points if useful. -
How to find the technical name
Hai,
How to find the technical name of a data source for General Ledger: Balances Period Breakdown
ThanksHai
my question is in General Ledger: Balances Period Breakdown
the link is showing General Ledger : Balances , Leadingledger
I got this link in queries for General Ledger: Balances Period Breakdown
http://help.sap.com/saphelp_nw70/helpdata/en/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
But here technical name of info cube is given.But i dont know how to find the technical name of the data source.This might be simple question i think but i am new to SAP
Thanks -
How to find the form name attached to AR Open item list
How to find the form name attached to AR Open item list
FBL5N -> Correspondance
Thanks
GaneshYou can find out in SPRO.
Go to tcode SPRO
Financial Accounting (New)
Financial Accounting Basic Settings (New)
Correspondence
Define Form Name for Correspondence Print
Here you will find the form attached to the program.
To find the attached program to the Correspondence type.
Go to tcode SPRO
Financial Accounting (New)
Financial Accounting Basic Settings (New)
Correspondence
Assign programs for the Correspondence Types
Regards,
Naimesh Patel
Maybe you are looking for
-
I have a 5th generation Airport Extreme. I recently upgrade my Macbook Pro to Lion and then went on vacation. I checked all my hard drives when I returned and my Airport extreme is no longer recognizing my hard drives. I have two WD mac-formatted HDs
-
Payables Open Interface Import error
Hi all I have the following issue in EBS R12. RDBMS : 11.2.0.3.0 Oracle Applications : 12.1.3 I'm inserting records into the AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables and then running the "Payables Open Interface Import" concurrent
-
TS4268 HOW DO I GET MY IMESSAGES TO MESSAGE A NUMBER ON MY ACCOUNT ON MY IPOD?
My son has imessage on his phone and his phone is on my account. How can I send him a message?
-
I cannot slide to answer calls or to turn my phone off please help
Can anyone help?
-
Hi there. I installed Nook for Mac, downloaded a book, and moved it from My Documents to ADE. As per instructions from someone on the nook forum. I actually use a Kobo reader, which is why I wanted to move it to ADE. When I tried to move or open