Logical database sdf in custom program not triggering selection screen?
I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
Do I have to associate these somewhere?
Thanks,
Ven
HI,
Declare this statement after the Report Statement in the program.
TABLES : SKA1, SKB1.
You will get the selection screen now.
Similar Messages
-
One of the functional groups of the Logical Database "SDF" does not appear.
Hello,
I have a problem with the logical database "SDF". It has already defined 3 functional groups. When I select the buttom "display the contents" I can see all these groups with their owns fields.
The problem is that when I use a transaction which contains this logical database, in the dynamic selections I can only see two of the functional groups. The last one doesn't appear there and I don't know why.
How can I resolve my problem?
Thank you very much in advance.
Best Regards.1 hour is the default timeout for "ExternalCommandTimeout". So, it could be that this one measure group's fact query is taking longer than 1 hour for the first record. You can see the query in the error messages and might like to try it out
manually. Note, a common issue is with referenced dimensions or Distinct Count when an inner join or Order By are added to the fact queries.
A simple solution might be to simply increase the ExternalCommandTimeout in the SSAS properties page. Try 7200, and if it completes in less than 2 hours, or fails after exactly 2 hours, you know this is the issue.
Richard -
How do you find if a LOGICAL DATABASE exists for your program requirements?
how do you find if a LOGICAL DATABASE exists for your program requirements?
please explain.Hi Ramana
One may not accurately pin point the LDB for ones requirement. But there some ways.
1. You can find with respect to the application you are working on. You can refer to the Table field TRDIR-APPL. The following are the values it has. So suppose if you have requirement for HR you can search for application 'P' :
A Assets accounting
D DASS control station
E RIVA
F Financial accounting
G General Ledger
H Human resources planning
I Maintenance
J RK projects
K Cost accounting
L Warehouse management
M Materials management
N Hospital
P Human resources
Q QSS
S System
V Sales
Y Customer head office
Z Customer branch
2. You can see the package in which your current is stored in SE80. Under the same package you can see if there are any LDBs. -
How to add a selection criterion to a SQ01 query based on logical database SDF?
Hi,
How should I add a selection criterion to a SQ01 query based on the logical database SDF? Is it possible through additional code? How to make use of the custom selection fields? I need a selection criterion based on BKPF-CPUDT (creation date).
Thanks.Hi John,
Please check the given below link in addtion to Atul post.
http://scn.sap.com/community/erp/sd/blog/2012/04/16/query-report-tips-part-2--mandatory-selection-field
Thanks,
Senthil Maruthappan. -
Make non-mandatory field in Logical Database 'SDF' mandatory.
Hi all,
I want to make a non-mandatory field 'Chart of Accounts' in Logical Database 'SDF' mandatory in my Z program.
Please let me know how this can be done?
I tried defining the select-option in my zprogram but it gives error saying the parameter has already been defined in LDB.
Regards,
Atrinandan
Edited by: raj on Aug 3, 2009 7:46 PMHi,
You can try like below:
at selection-screen output.
loop at screen.
if screen-name = 'NAME OF THE PARAMETER'.
screen-required = 1.
modify screen.
endif.
endloop.
Regards,
Himanshu -
How do u find if a logical database exsits for ur program requirements.
hi
how do u find if a logical database exsits for ur program requirements.Hai friend
you just open your program and than from your MENU BAR select GOTO menu from that select ATTRIBUTE and enter then check LOGICAL DATABASE name hase give or not.
1. open your program.
2. from menu bar select GOTO
3. from GOTO menu select ATTRIBUTES.
4. check for LOGICAL DATABASE name has given or not, If give that is your logical database name.
reward if useful.
uk -
Modify selection screen for Logical Database 'SDF'
Hi
I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
Thanks,
ThomasI tried to do this:
Loop at screen.
if screen-group4 = '026'
or screen-group4 = '027'
or screen-group4 = '028'.
screen-invisible = 1.
modify screen.
endif.
endloop.
This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
What am I doing wrong?
Thanks for your help!
Thomas -
How to find if a logical database exists for your program requrements?
hi
How do you find if a logical database exists for your program requrements?
RegardsYou probably know the DB table that you'd like to query
try where used list : 'Logical database'
then you can see what interests you... -
Screen Saver does not use selected Screen Saver when activated
Screen Saver does not use selected Screen Saver when activated. After "Start screen saver" elapse time has been reached, a blank black full screen is displayed. I can activate the selected screen saver by using the hot corners function. Any help with this matter will be greatfully received.
Hi again sassey,
You're assuming correctly. Simply change the settings so that your screen saver activates before the sleep settings.
Hope this solves your problem... -
Logical Database of SAP Example Program
Hi all,
I need an example ABAP program using standard Logical Database ( LDB ) .
Help me.
Regards,
Peachi.Hi,
Some links to refer..
/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/893908#
A sample prog with LDB PNP
*& Report ZH_REPT_PAYMENT *
report zh_rept_payment line-size 80 no standard page
heading.
tables: pernr, " Standard Selections for HR Master Data Reporting
pcl1, " HR Cluster 1
pcl2, " HR Cluster 2
pa0009,
PA9001,
PA9006,
pa0002,
pc260 , " Cluster Directory for Payroll Results
bnka .
Infotypes
infotypes: 0001. " Organizational Assignment
Declaration of Internal Tables
data : bnka1 like bnka occurs 0 with header line .
data: begin of t_int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
end of t_int_rep.
data: begin of int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
begda like pa0009-begda, "Begin date
end of int_rep.
Declaration of Data Variables
data: ws_betrg like pc209-betrg, " BT Amount
w_val like spell occurs 0 with header line,
int_rep1(6), " TYPE I, " Employee Number
cnt type i value 0, " Counter
calcmolga like t500l-molga value '40', " Country Grouping
v_id(15),
calc_currency like t001-waers value 'INR'. " Currency
data : ctr type i,
dt_merge like pa0009-begda.
data: ws_totemp(6) type c,
ws_totamt(20) type c,
r_mth(9) type c,
ws_fpbeg(6) type c,
ws_fpend(6) type c,
ws_mthyr(6) type c,
ws_mthyr_r(14) type c,
r_mth_t(3) type c,
ws_amt(8) type c,
ws_bankl(14) type c,
ws_date(6) type c,
amount_word(500),
total_page type i,
pages type i,
remain type i.
data begin of i_spell.
include structure spell .
data end of i_spell .
data : c_molga type t500l-molga value '40',
c_banks type bnka-banks value 'IN'.
Standard Includes
include rpc2cd09. "Cluster CD data definition
include pc2rxin0.
include rpc2rx09.
include rpppxd00. " Data Definition buffer PCL1/PCL2
include rpppxd10. " Common Part buffer PCL1/PCL2
include rpppxm00. " Buffer Handling RoutinePCL1/PCL2
include zrpc2rox2. " Data Definition POCLSTERS (not J,K,U)
Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameter: pa_mth(2) type c default sy-datum+4(2) obligatory,
pa_year(4) type c default sy-datum(4) obligatory,
p_bankl like pc209-bankl, " Bank Number
p_zlsch like pc209-zlsch. " Payment method
selection-screen end of block b1.
save_calc_currency = calc_currency.
count_top = 0.
get_pernr_flag = 0.
Top-Of-Page
top-of-page.
perform convert_month using pa_mth(2) r_mth.
ws_mthyr_r = r_mth.
concatenate ws_mthyr_r pa_year into ws_mthyr_r separated by space.
SKIP 5.
skip 1.
skip 4.
if int_rep-bankl eq ' '.
if int_rep-zlsch eq 'C' or int_rep-zlsch eq 'E' or
int_rep-zlsch eq ' '.
write: /1(85) 'CHEQUE PAYMENT STATEMENT'(047) centered.
elseif int_rep-zlsch eq 'L'.
write: /1(85) 'DEMAND DRAFT STATEMENT'(047) centered.
endif.
else.
write: /1(85) 'BANK TRANSFER STATEMENT'(002) centered.
endif.
skip.
write: /34 ws_mthyr_r,
62 'Page :'(008),69(2) sy-pagno intensified off,
' Of ',78(2) pages intensified off.
clear pages.
read table bnka1 with key bankl = int_rep-bankl .
if sy-subrc = 0.
if int_rep-zlsch eq 'T'.
write:/03(10) 'Bank Name : ', bnka1-banka.
write:/03(10) 'Branch : ', bnka1-brnch.
write:/03(10) 'Address : ', bnka1-stras.
endif.
endif.
skip.
write:/1(80) sy-uline.
write: /1 sy-vline, 2(5) 'Sl.No'(002),
7 sy-vline, 8(8) 'Emp.No.'(003),
16 sy-vline,17(35) 'Employee Name'(004).
*--added for Demand Draft
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline, 48(15) 'Payable at'(005).
else.
write : 47 sy-vline,48(15) 'Account No.'(005).
endif.
write: 63 sy-vline,64(16) 'Amount'(006),
80 sy-vline.
write:/1(80) sy-uline.
end-of-page.
write:/1(80) sy-uline.
write:/2 'Printed on ', sy-datum.
Start-of-selection.
start-of-selection.
*perform h_headr.
ctr = 0.
set margin 5.
call function 'RP_GET_CURRENCY'
exporting
molga = calcmolga
importing
waers = calc_currency
exceptions
others.
if sy-subrc ne 0.
calc_currency = 'DEM'.
calc_currency = save_calc_currency.
endif.
get pernr.
cd-key-pernr = pernr-pernr.
perform import_cluster.
get_pernr_flag = 1.
check : ocd-version-molga eq calcmolga.
The table 'tabpernr' is filled with the personnel numbers
and is used after selection is finished.
move-corresponding pernr to tabpernr.
append tabpernr.
The table 'tab_rgdir' is filled
loop at rgdir.
rx-key-pernr = pernr-pernr.
unpack rgdir-seqnr to rx-key-seqno.
perform int_tab. "fill tab_rgdir
perform import_bt.
perform validate.
endloop.
End of Selection
end-of-selection.
*perform h_headr.
perform convert_date_a using pa_mth r_mth_t.
sort int_rep by bankl zlsch pernr betrg descending.
delete adjacent duplicates from int_rep
comparing bankl zlsch pernr .
sort int_rep by bankl zlsch bankn . "PERNR.
loop at int_rep.
at new bankl.
select single * into bnka1 from bnka
where banks = c_banks and
bankl = int_rep-bankl .
append bnka1.
clear bnka1.
endat.
endloop.
for Demand Draft - purpose added
loop at int_rep.
concatenate pa_year(4) pa_mth(2) '01' into dt_merge.
select single * "zweck into int_rep-zweck
from pa0009 where
pernr = int_rep-pernr and
bankl = int_rep-bankl and
zlsch = int_rep-zlsch
and begda <= dt_merge and
endda >= dt_merge .
if sy-subrc = 0.
int_rep-zweck = pa0009-zweck.
modify int_rep.
endif.
endloop.
*-for DD and Chq sorted by PAyable at and EMPNO wise
if p_zlsch = 'T' .
sort int_rep by bankl zlsch bankn . "PERNR.
else. "added for "payable at" for DD/Chq
else.
sort int_rep by zweck pernr . "PERNR.
endif.
*delete adjacent duplicates from int_rep.
t_int_rep] = int_rep[.
loop at int_rep.
*-for page of page no.
total_page = 0.
loop at t_int_rep where bankl = int_rep-bankl
and zlsch = int_rep-zlsch.
total_page = total_page + 1.
endloop.
pages = total_page div 25.
remain = total_page mod 25.
comment bcoz its adding one extra page no.
done as on 29/11/2004
if remain > 0.
pages = pages + 1.
endif.
**-end
at new bankl.
ctr = 0 .
new-page.
endat.
at new zlsch.
ctr = 0 .
new-page.
endat.
clear v_id.
select single natio
into pa0002-natio
from pa0002
where pernr eq int_rep-pernr.
*-testing......for soma
if ctr > 24.
ctr = 0 .
write:/1(80) sy-uline.
new-page .
endif.
ctr = ctr + 1 .
cnt = cnt + 1.
pack int_rep-pernr to int_rep1.
write:/1 sy-vline, 2(3) cnt intensified off,
7 sy-vline, 9(6) int_rep1 intensified off,
16 sy-vline,17(35) int_rep-ename intensified off .
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline,48(15) int_rep-zweck intensified off.
else.
write:
47 sy-vline,48(15) int_rep-bankn intensified off .
endif.
write: 63 sy-vline,64(16) int_rep-betrg
intensified off currency 'INR',
80 sy-vline.
ws_betrg = ws_betrg + int_rep-betrg.
*-testing......for soma
skip.
write :
/1 sy-vline, 7 sy-vline ,16 sy-vline ,47 sy-vline,63 sy-vline,80
sy-vline .
*-end testing......for soma
at end of zlsch.
if int_rep-bankl = ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed On ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
endif.
endat.
at end of bankl.
if int_rep-bankl ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed on ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
NEW-PAGE.
endif.
endat.
endloop.
End of Page
end-of-page.
write: /2 'Prepared by :'(010), '_______________',
45 'Checked by :'(011),'_______________'.
*& Form IMPORT_CLUSTER
Importing Data from Cluster *
form import_cluster.
sy-subrc = 0.
rp-imp-c2-cd.
if sy-subrc eq 0.
if cd-version-number ne ocd-version-number.
endif.
endif. " SY-SUBRC EQ 0
endform. " IMPORT_CLUSTER
*& Form INT_TAB
Filling internal table tab_rgdir
form int_tab.
*Fill internal table tab_rgdir.
move-corresponding rgdir to tab_rgdir.
tab_rgdir-pernr = pernr-pernr.
append tab_rgdir.
endform. " INT_TAB
*& Form IMPORT_bt
Import Values from Bank Transactions Table (BT)
form import_bt.
rp-init-buffer.
RP-IMP-C2-RX.
rp-imp-c2-in.
if rp-imp-in-subrc eq 0.
if in-version-number ne oin-version-number.
write: / 'Schlüssel des Clusters RX:'(015),
rx-key-pernr, rx-key-seqno.
write: / 'The imported version of the cluster'(016), 'RX',
'is not current'(017).
write: / 'Imported version :'(018),
oin-version-number.
write: / 'Current version of cluster :'(019),
in-version-number.
stop.
else.
sy-subrc = 0.
endif.
else.
sy-subrc = 8.
write: /
'Inconsistencies between cluster directory and directory for'(020).
write: /
'No payroll results found for data in cluster directory'(021).
write : /
'Please contact hotline to solve the current problem'(022).
endif.
ws_fpbeg(2) = versc-fpbeg+4(2).
ws_fpbeg+2(4) = versc-fpbeg(4).
ws_fpend(2) = versc-fpend+4(2).
ws_fpend+2(4) = versc-fpend(4).
ws_mthyr(2) = pa_mth.
ws_mthyr+2(4) = pa_year.
check ws_mthyr = ws_fpbeg.
check ws_mthyr = ws_fpend.
loop at bt. "from pc209
int_rep-pernr = pernr-pernr.
int_rep-ename = pernr-ename.
int_rep-bankl = bt-bankl.
int_rep-bankn = bt-bankn.
int_rep-betrg = bt-betrg.
int_rep-zlsch = bt-zlsch.
append int_rep.
endloop.
IF P_BANKL ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ELSEIF P_BANKL = ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE ZLSCH P_ZLSCH.
ELSEIF P_BANKL ' ' AND P_ZLSCH = ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ENDIF.
endform. " IMPORT_BT
*& Form CONVERT_MONTH
Fetching Month Text
form convert_month using mth t_mth.
case mth.
when '01'.
t_mth = 'January'(023).
when '02'.
t_mth = 'February'(024).
when '03'.
t_mth = 'March'(025).
when '04'.
t_mth = 'April'(026).
when '05'.
t_mth = 'May'(027).
when '06'.
t_mth = 'June'(028).
when '07'.
t_mth = 'July'(029).
when '08'.
t_mth = 'August'(030).
when '09'.
t_mth = 'September'(031).
when '10'.
t_mth = 'October'(032).
when '11'.
t_mth = 'November'(033).
when '12'.
t_mth = 'December'(034).
endcase.
endform. " CONVERT_MONTH
*& Form CONVERT_DATE_A
Fetching Month Text *
form convert_date_a using mth_t t_mth_t.
case mth_t.
when '01'.
t_mth_t = 'Jan.'(035).
when '02'.
t_mth_t = 'Feb.'(036).
when '03'.
t_mth_t = 'Mar.'(037).
when '04'.
t_mth_t = 'Apr.'(038).
when '05'.
t_mth_t = 'May.'(039).
when '06'.
t_mth_t = 'Jun.'(040).
when '07'.
t_mth_t = 'Jul.'(041).
when '08'.
t_mth_t = 'Aug.'(042).
when '09'.
t_mth_t = 'Sep.'(043).
when '10'.
t_mth_t = 'Oct.'(044).
when '11'.
t_mth_t = 'Nov.'(045).
when '12'.
t_mth_t = 'Dec.'(046).
endcase.
endform. " CONVERT_DATE_A
*& Form VALIDATE
text
--> p1 text
<-- p2 text
form validate .
if p_bankl <> ' ' and p_zlsch ' '.
delete int_rep where bankl p_bankl.
elseif p_bankl = ' ' and p_zlsch ' '.
delete int_rep where zlsch p_zlsch.
elseif p_bankl ' ' and p_zlsch = ' '.
delete int_rep where bankl p_bankl.
endif.
endform. " VALIDATE
check this weblog.....
/people/dj.adams/blog/2003/11/13/food-for-thought-ldbs-and-abap-objects
Also , check the following link too.
http://www.datamanagementgroup.com/Resources/Articles/Article_1005_2.asp
Regards,
Satish -
GOS on custom program not saving links
Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.
I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.
Steps I performed:
I created the Business object saved and released to implemented with the following:
Key -> programName (TRDIR-NAME)
and redefined the GOSAddObjects method like this:
BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
DATA:
SERVICE(255),
BUSIDENTIFS LIKE BORIDENT OCCURS 0,
LS_BORIDENT Type BORIDENT.
CLEAR LS_BORIDENT.
LS_BORIDENT-LOGSYS = SPACE.
LS_BORIDENT-OBJTYPE = 'ZGOS'.
LS_BORIDENT-OBJKEY = OBJECT-KEY.
APPEND LS_BORIDENT TO BUSIDENTIFS.
SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
END_METHOD.
Z program:
REPORT Z_RUBS_TEST_GOS.
CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
OBJ TYPE BORIDENT.
PARAMETERS: MATNR TYPE MARA-MATNR.
AT SELECTION-SCREEN OUTPUT.
CLEAR OBJ.
* SET OBJECT TYPE TO 'ZGOS'
OBJ-OBJTYPE = OBJTYPE.
OBJ-LOGSYS = 'OP1CLNT200'.
* SET OBJECT KEY = REPORT NAME
SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
WHERE NAME = SY-REPID.
* CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
CREATE OBJECT MANAGER EXPORTING
IS_OBJECT = OBJ EXCEPTIONS
OTHERS = 1.You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).
For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...) -
Mailer Program Not Triggering Mail in ECC 6.0
Hi Experts,
We have upgarded from 4.6b to ECC 6.0,
In an program we are using function module
SO_NEW_DOCUMENT_ATT_SEND_API1
It was working fine 4.6b but In ECC it is not triggering mail to an internet address mentioned.
In SBWP I can see the mail in the out box, but the mail details are not appearing in SOST transaction.
Does any more specific setting required.
Even I am not getting any Exceptions while running the FM.
Thanks in Advacne,
Regards,
IFFHi,
Check if commit_work parameter of ur func module = 'X'.
Check the sy-subrc value after the FM.
In SOST in send status tab check all the check boxes n execute
in ur program add this piece of code...just below the FM SO_NEW_........
If sy-subrc = 0.
wait up to 1 seconds.
submit rsconn01 with mode = 'INT' and return.
endif.
Cheers,
jose. -
Infoset based on logical database CRC and customer field wrongly calculated
Hello,
I'm building an info-set (SQ02) based on logical database CRC. My requirement is to calculate a value based on the start date of the capacity allocated to a work center (KAKO-BEGZT).
I defined a customer field (named FIELD1) with data type I, defined in R-KAKO_A with the following coding :
FIELD1 = R-KAKO_A + 100.
After having built the query (SQ01), the field returns correctly the value for FIELD1 only if an interval is defined in the capacity of the work center. Without that, FIELD1 is always null.
Can you help ?
Thank youcapacity header data is linked to table KAZY (interval) - if there is no relevant record there, your field1 gets nothing
-
Custom error messages in selection-screen
Hello All,
I have one query. I have developed a vendor aging report. In the SELECT-OPTIONS, there are 5 fields namely company code, business area, vendor group, vendor code and cash management group. What the user wants is if he enters any invalid value in any of the 5 fields, custom error message should be displayed like 'invalid company code' etc. I think we have to write these messages in 'at-selection-screen' event. Can u help me out with a sample code snippet w.r.t the above program? I have written the code as:
AT SELECTION-SCREEN.
IF S_BUKRS ne BSIK-BUKRS.
MESSAGE e000. 'invalid company code' TYPE 'E'.
ENDIF.
But not giving the correct output.i.e. even if I enter a valid company code, the error message is displayed. Can u help me in solving this problem?
Thanks and Regards,
Satvik
Edited by: Satvikpanchal on Jul 22, 2011 9:42 AMHi,
use AT SELECTION-SCREEN on S_BUKRS-low.
Use select query for checking the Company code in T001 table check the
Company code already exist or not? If it is not there show the message.
Code like
AT SELECTION-SCREEN on S_BUKRS-low.
select single bukrs into lv_bukrs
from T001 where bukrs = s_bukrs-low.
if sy-subrc NE 0.
MESSAGE e000. 'invalid company code' TYPE 'E'.
ENDIF.
i think you company code is select option so you have to check S_BUKRS-high also.
using the event AT SELECTION-SCREEN on S_BUKRS-high.
Regards,
DHina.. -
Urgent: Custom Text in Variable Selection Screen
Hi Experts,
I know that it is not recommended by SAP to customise the variable screen, I am sorry but that is ridiculous coz there are no alternatives provided for even simple editing. I''ve searched every where in SDN to find a way to simply add a custom text element in this bizarre screen.
I need to do that because I have to group variables that look similar in a container and add some instructions to users on how to base their selections.
I am also not sure what exactly the web item whcih is behind this selection screen or perhaps if it is another web template that is being invoked by the standard template ""0analysis_pattern"" and if any what is that web item invoking it.
If you have any clues of how i can achieve this please adivce as soon as you possibly can.
Points will be assigned.
Cheers,
Jad
Edited by: Jad on Apr 30, 2008 8:27 AMHello,
To customize your variable screen you should neeed developer access key..you can see whether you have got or not in table Devaccess..
Personalisation of variables is for saving all inputs for future use. ( In your case save without any pre determined values )
Below PDF link will surely answer your doubts.
http://www.ies.state.pa.us/imaginepa/lib/imaginepa/mso2.pdf
The personalization option can be activated in the system (using the program RS_PERS_ACTIVATE or the IMG guide (BW Customizing Implementation Guide -> Business Information Warehouse -> Reporting-Relevant Settings -> General Reporting Settings -> Activate personalization in the BEx).
You can manage your personalization variable through BEX Analyzer "Change Variable Values" menu option "Business Explorer --> change query --> change variable values.
[variables|http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm]
Go through this link for making cange in Variable selection screen..
Re: No Text displayed in the Input help in WEB
For creating the Web Template..
Go the web application designer, create a new web template in the template
in the left hand side you will find web items , from there drag and drop table , navigation block for your navigation attributes and in the table you have to assign the data provider
for that first you have to do
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DATAPROVIDER_1"/>
<param name="QUERY" value="your query name"/>
<param name="INFOCUBE" value="your cube or multiprovider name "/>
DATA_PROVIDER: DATAPROVIDER_1
</object>
now you can asssign the data provider 1 to the table.
you can all the neccessary things you want , like check box, radio button group, charts etc.
while saving this save it in a role.
If you want to do this for a workbook, which has been created in the BEx Analyzer, do the following:
After embedding the query in the workbook, right click -> choose 'properties' in the context menu -> click the 'interaction' tab -> check the 'save and reuse variable values' option.
After doing this, once the workbook or query is refreshed, the already entered variable values are taken.
Also see
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a5529e09411d2acb90000e829fbfe/frameset.htm
Hope it helps you,Revert me back if you have any queries
Assign points if helpful
Regards
Bala
http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
Maybe you are looking for
-
My voice memos are not syncing to my itunes library from my iphone 5c
I have tried everything I can think of, everything but the voice notes will sync. I made sure to check the box that says "include voice memos" and also have tried deleting the voice memo playlist from itunes library on computer, and tried syncing aga
-
Hey everyone, Wondering if any of you can help clarify something for me. I've switched off notifications through Notification Centre for all apps, but I've been told that this doesn't fully switch notifications off. Is that correct? I assumed that wh
-
How to increase the column size of Alv tbale
Hi All, I created an Alv table to display the content of my database table. In one of the column the entire data from my database are not displayed the last few characters are missing. The data type for that column in the database is char. Can any on
-
I can see my new 30g on list but can't put songs or playlists on
Nothing seems to happen after doing an update. iPod still empty. Any ideas?
-
SEM BPS Audit trail/security
Hi guys, I have just finished configuring SEM-BPS but my client wants an audit trail on all the transactions in the same component. We are using planning folders to enter plan data which sits on infocubes created in BW/BI. When a user enters plan dat