Plz send answers ASAP
1Q)marker interface having no methods right.. then what is the use of marker interface? for what purpose we use marker interface?
2Q)how to make a dynamic object ,name of object is entered by user?
3Q)Why class Class is always the Super Class for every class
1) A rose by any other name would smell as sweet! So wherefore do we have names at all?
2) "dynamic object" has no standardized meaning last time I checked! You can make an object that has a user specified name if you want to! That won't make it any more or any less dynamic than any other object necessarily!
3) Class ISN'T the superclass of every class! Object is! Class is the metaclass of every class!
Is that ASAP enough for you?
Similar Messages
-
Plz send answer for this.
Can u explain BAPI Function module & API Method both are Same ?or What? give example.
BAPI (Business Application Programming Interface) is a set of interfaces to object-oriented programming methods that enable a programmer to integrate third-party software into the proprietary R/3 product from SAP. For specific business tasks such as uploading transactional data, BAPIs are implemented and stored in the R/3 system as remote function call (RFC) modules.
An application programming interface (API) is a source code interface that a computer system or program library provides to support requests for services to be made of it by a computer program. An API differs from an application binary interface in that it is specified in terms of a programming language that can be compiled when an application is built, rather than an explicit low level description of how data is laid out in memory.
Regards,
Pavan -
1) How to print the layout set?
2) What is print program elements?
3) How do call the smart forms?
4) What steps we have to follow when we are writting test cases?
5) Why we need to transfer the data from out bound to inbound system?
plz send this answers immediatly
Thank you
Rajesh.Mhi..
Jus chk out these questions:
1. What are the basic concepts for recording time data?
2. What steps are required to set up work schedules?
3. Can you define your own public holidays?
4. How do you define which public holiday calendar is valid for an employee?
5. Which characteristics does a public holiday class blank have?
6. Is there an employee subgroup grouping for daily work schedules?
7. What is a variant of a daily work schedule?
8. Is there an employee subgroup grouping for time quotas?
9. What ways are there to define breaks within a break schedule?
10. Which characteristics does a daily work schedule with daily work schedule class 1 have?
11. Which elements make up a period work schedule?
12. Which characteristic does a day with day type 1 have?
13. Which ways are there of representing part-time work in the SAP R/3 system?
14. Which ways are there of representing substitutions in the SAP R/3 system?
15. What is the difference between absences (Infotype 2001) and attendances (Infotype 2002)?
16. What is an absence quota? Give examples.
17. What is the difference between a validity interval and a deduction interval for time quotas?
18. You need to deduct an absence from a quota. Which Customizing settings are required?
19. Should a quota be assigned directly to an absence?
20. What is the remuneration Infotype used for?
21. What are counting rules used for?
22. Can you set up default values to create absence quotas?
23. Can you generate absence quotas?
24. What is the schema TQTA used for?
25. What ways are there of entering information for Controlling when recording time data in the Time Management Infotypes?
Regards,
TS -
How to open a Cash Drawer in AS3? NEED ANSWER ASAP!!!
Is it in anyway possible to open a cash drawer in actionscript 3 (Flash CS5) that is connected to a receipt printer. NEED ANSWERS ASAP!
You're right ! But my printer is connected via the ethernet port and i need to use the print API to communicate with it. In ActionScript nothing works I tried to send the escape sequence that should open the drawer : String.fromCharCode(27)+String.fromCharCode(112)+String.fromCharCode(48)+String.fromCharC ode(53)+String.fromCharCode(53) ... it didn't work.
So i decided to call a little Java program (JAR) through the Air NativeProcess API. This program send the escape sequence to the printer using Java print API.
Thx for the answer -
We are not able to execute below procedure, plz help me ASAP.
Dear All
I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
V_VITALCHARTING VARCHAR2,
V_DOCIDPATIENTS VARCHAR2,
v_fromdate varchar2,
v_todate varchar2) AS
D1 VARCHAR2(500);
D2 VARCHAR2(500);
G1 VARCHAR2(500);
R1 VARCHAR2(500);
R2 VARCHAR2(500);
R3 VARCHAR2(500);
R4 VARCHAR2(500);
R5 VARCHAR2(500);
H1 VARCHAR2(500);
H2 VARCHAR2(500);
V_COUNT NUMBER;
RC VARCHAR2(100);
RMI VARCHAR2(100);
RMAX VARCHAR2(100);
R12 VARCHAR2(500);
REQ NUMBER;
V_MAX number;
v_idcount number;
RSEQ NUMBER;
RCH VARCHAR2(500);
BEGIN
INSERT INTO TEMPDATA
SELECT ROWNUM G, TIME1
FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
FROM VIEW_PATIENTCHART V,
chartingtxheader H,
chartingtxdetails D
WHERE h.docid = d.docidchartingtxheader
and v.VITALCHARTING_PK = h.docidvitalcharting
and v.VITALPARAMETER_PK = d.docidvitalparameter
and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
and H.DOCIDPATIENTS = V_DOCIDPATIENTS
and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
'DD/MM/YYYY') BETWEEN
TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
TO_DATE(V_TODATE, 'DD/MM/YYYY'));
SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
V_IDCOUNT := 0;
WHILE V_IDCOUNT < V_MAX loop
FOR J IN (SELECT id, ROWNUM G, vdate time1
FROM (SELECT id, ROWNUM, VDATE
FROM TEMPDATA
WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
D1 := D1 || 'COL' || J.G || ',';
D2 := D2 || '''' || J.TIME1 || '''' || ',';
END LOOP;
D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
DBMS_OUTPUT.PUT_LINE(d1);
SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
V_IDCOUNT || ',' || D2 || ')';
--EXECUTE IMMEDIATE G1;
DBMS_OUTPUT.PUT_LINE(d1);
DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
DBMS_OUTPUT.PUT_LINE(G1);
EXECUTE IMMEDIATE G1;
FOR K IN (SELECT id, ROWNUM G, vdate time2
FROM (SELECT id, ROWNUM, VDATE
FROM TEMPDATA
WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
FOR I IN (select s.*, rownum hslno
from (SELECT v.CHARTNAME,
v.PARAMETERNAME_CS,
' ' || v.PARAMETERNAME PARAMETERNAME,
TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
CASE
WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
CASE
WHEN TO_NUMBER(d.recordedvalue) <
TO_NUMBER(D.MINVALUE) THEN
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'L')
ELSE
CASE
WHEN TO_NUMBER(d.recordedvalue) >
TO_NUMBER(D.MaxVALUE) THEN
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'H')
ELSE
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'N')
END END ELSE d.recordedvalue END IMAGECHAR,
d.minvalue,
d.maxvalue,
D.UOMCODE
FROM VIEW_PATIENTCHART V,
chartingtxheader H,
chartingtxdetails D
WHERE h.docid = d.docidchartingtxheader
and v.VITALCHARTING_PK = h.docidvitalcharting
and v.VITALPARAMETER_PK = d.docidvitalparameter
and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
and H.DOCIDPATIENTS = V_DOCIDPATIENTS
ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
-- v.PARAMETERNAME_CS,v.PARAMETERNAME
) s
where s.time1 = k.time2) LOOP
select count(1)
into v_count
from GETDATA2 d
where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
and PARAMETERNAME = i.PARAMETERNAME
and idcount = v_idcount;
IF V_COUNT = 0 THEN
RCH := I.CHARTNAME;
R1 := 'COL' || K.G;
R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
R3 := '''' || I.PARAMETERNAME || '''' || ',';
R4 := '''' || I.IMAGECHAR || '''';
RC := '''' || I.CHARTNAME || '''' || ',';
RMI := '''' || I.minvalue || '''' || ',';
RMAX := '''' || I.maxvalue || '''' || ',';
R12 := '''' || I.UOMCODE || '''' || ',';
SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
EXECUTE IMMEDIATE H1;
ELSE
R5 := 'COL' || K.G;
R4 := '''' || I.IMAGECHAR || '''';
H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
EXECUTE IMMEDIATE H2;
END IF;
END LOOP;
end loop;
UPDATE getdata2 s
set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
' -- ' || maxvalue || ') ' || UMCODE
where s.parametername is not null
and idcount = v_idcount
and minvalue != 0
and maxvalue != 0;
UPDATE getdata2 s
set s.parametername = s.parametername || ' -' || UMCODE
where s.parametername is not null
and idcount = v_idcount
and minvalue = 0
and maxvalue = 0;
UPDATE GETDATA2 S
SET S.PARAMETERNAME_CS = NULL
WHERE ROWID NOT IN (SELECT MIN(ROWID)
FROM GETDATA2
WHERE idcount = v_idcount
GROUP BY PARAMETERNAME_CS)
and idcount = v_idcount;
UPDATE GETDATA2 S
SET CHARTNAME = NULL
WHERE ROWID NOT IN (SELECT MIN(ROWID)
FROM GETDATA2
WHERE idcount = v_idcount
GROUP BY CHARTNAME)
and idcount = v_idcount;
UPDATE getdata2 s
set s.parametername = ' PARAMETER'
where s.parametername is null
AND S.PARAMETERNAME_CS IS NULL;
v_idcount := v_idcount + 8;
D1 := null;
d2 := null;
end loop;
for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
FROM GETDATA2 G
WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
INSERT INTO GETDATA2
(IDSLNO, PARAMETERNAME)
VALUES
(I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
END LOOP;
update GETDATA2 h set h.PARAMETERNAME_CS = null;
update GETDATA2 h set h.chartname = rcH;
INSERT INTO GETDATA1
SELECT CHARTNAME,
PARAMETERNAME_CS,
PARAMETERNAME,
COL1,
COL2,
COL3,
COL4,
COL5,
COL6,
COL7,
COL8,
COL9,
COL10,
MINVALUE,
MAXVALUE,
UMCODE
FROM GETDATA2
ORDER BY IDSLNO;
OPEN RPT_CURSOR FOR
SELECT * FROM GETDATA1;
END;
CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
as
type RPT_RESULTS is REF CURSOR;
type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
END RPT_PACKAGE;
Execute
declare
type my_newcursor IS REF CURSOR;
begin
GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
end;Parwez wrote:
Dear All
I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
see a picture of my car.
my car won't go.
tell me how to make my car go.
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
I want to abap-hr programing and concept plz send usefull links and materia
hi plz ,
i want to learn abap-hr programing and concepts and faqs, so, plz send usefull links or material or pdfs which helps me and i hope ,
thank u,Hi Manoj,
Welcome to SDN....
Check these link on ABAP HR.
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sap-img.com/
http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
http://www.planetsap.com/HR_ABAP_payroll.htm
http://abap4.tripod.com/Human_Resources_Tables_Infotypes.html
http://abap4.tripod.com/SAP_Functions.html
http://www.planetsap.com/hr_abap_main_page.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
http://www.sap-basis-abap.com/saphr.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
http://www.saptips.com/Previews/SAPtipsAugust-September2004TableOfContents.pdf
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
http://help.sap.com/saphelp_46c/helpdata/en/4f/d528be575e11d189270000e8322f96/frameset.htm.
http://www.sap-basis-abap.com/saphr.htm.
http://www.sapgenie.com/faq/hr.htm
http://www.sapgenie.com/workflow/scenarios.htm
http://www.sap-img.com/human/hr-faq.htm
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.sapgenie.com/mysap/mysap_hr.htm
Thanks,
Vinay -
could any body send me alv report functional, tech specs,
plz send me if possibleALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
Check these links for sample reports.
http://www.erpgenie.com/abap/code/abap28.htm
ALV REPORTS
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919 -
Code to write syntax for JOB submit ( Please answer ASAP)
Hi,
I need sytax to submit a job
Right now I am using this code to send 4 parameters.
I need to send these 4 in a structure.
submit Ztestjob USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.
So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
I need the syntax for submit .
I also need to know how to catch the structure with values in the BGPROGRAM.
Anyone please answer ASAP
Message was edited by:
ramana peddu
Message was edited by:
ramana pedduHi,
<u>SUBMIT</u>
Calls an executable program of type 1.
Syntax
SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>]
[LINE-SIZE <width>]
[LINE-COUNT <length>].
Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
Regards,
Bhaskar -
Can anyone plz send HTTP to RFC scenario
Hi everyone,
can u guys send me the HTTP to RFC scenario? plz send the detail scenario for HTTP-XI-RFC.
thank u in advance
xilearner1.Created data types for mapping with HTTP request and response.
2. Created messsage types and assigned corresponding data types to the message types.
3. Created one Message Interface (Outbound/Synchronous) for HTTP type and no need to create interface for RFC. You ca use the one which you have imported from R/3.
4. Create request and response message mapping and one Inteface mapping (with request tab and response tab) properly assigned.
Defined the following in ID:
1. Created HTTP business system (no communication channel)
2. Created communication channel for receiving system (SAP).
3. Created receiving determination and interface determination, receiver agreement, no sender agreement.
Check this link on how to configure RFC channel.
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Send XML message from HTTP client and you will see the response in the same.
Regards,
Sudheer. -
Plz send me incompletion procidure processu00A9 controls,scheduling agrimen
Hi friends
I need configuration settings all topics.plz help me it is very urgent.
Plz send above docs on my email Id also that are given below.
<b><REMOVED BY MODERATOR></b>
Regards,
V.srinivasHi,
Please read the rules of engagement before you post.
<b>- Do not ask to send you an email.</b>
The question you ask and the solution to it is often also interesting for other users of the community. If you ask somebody to send you the answer per email, you deprive others of also learning to know the answer. Therefore any requests for sending material or answers to an email address will be modified by the forum moderators. -
Could anybody plz send some faq's on modulepool?
Hi experts,
I'm very new to module pool.
could anybody plz send some faq's on modulepool?
regards.
venkatModule Pool Programming
http://www.allsaplinks.com/dialog_programming.html
http://sap.mis.cmich.edu/sap-abap/abap09/
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://sap.mis.cmich.edu/abap-00/
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com
http://www.sapgenie.com/abap/example_code.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://www.allsaplinks.com/dialog_programming.html
http://www.sapbrain.com/TUTORIALS/default.html
http://www.sappoint.com/abap/spmp.pdf
http://sappoint.com/abap.html
http://www.sap-img.com/abap.htm
http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/abap/
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.allsaplinks.com/dialog_programming.html
Check the following Link
http://www.sappoint.com/faq/faqss.pdf -
What are the steps to create sap apo ..plz send step by steps plzzzzzzzzzzz
what are the steps to create sap apo ..plz send step by steps plz. Iam new for these ?
what are the steps to create sap apo ..plz send step by steps plz. Iam new for these ?
-
Can anyone plz send a simple example of interactive reports
Hi gurus,
Can anyone plz send a simple example of interactive reports using subscreenswhich contains at line-selection, at user-command, pf and other commands.
Thanks in advance.Hi,
* Macro definition
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
ls_fieldcat-cfieldname = &3.
ls_fieldcat-qfieldname = &4.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
TYPES:
BEGIN OF ty_vbak,
vkorg TYPE vbak-vkorg, " Sales organization
kunnr TYPE vbak-kunnr, " Sold-to party
vbeln TYPE vbak-vbeln, " Sales document
netwr TYPE vbak-netwr, " Net Value of the Sales Order
waerk TYPE vbak-waerk, " Currency
END OF ty_vbak,
BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln, " Sales document
posnr TYPE vbap-posnr, " Sales document item
matnr TYPE vbap-matnr, " Material number
arktx TYPE vbap-arktx, " Short text for sales order item
kwmeng TYPE vbap-kwmeng, " Order quantity
vrkme TYPE vbap-vrkme, " Quantity Unit
netwr TYPE vbap-netwr, " Net value of the order item
waerk TYPE vbap-waerk, " Currency
END OF ty_vbap.
DATA :
gs_vbak TYPE ty_vbak,
* Data displayed in the first list
gt_vbak TYPE TABLE OF ty_vbak,
* Data displayed in the second list
gt_vbap TYPE TABLE OF ty_vbap.
SELECT-OPTIONS :
s_vkorg FOR gs_vbak-vkorg, " Sales organization
s_kunnr FOR gs_vbak-kunnr, " Sold-to party
s_vbeln FOR gs_vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data_vbak.
PERFORM f_display_data_vbak.
* Form f_read_data_vbak
FORM f_read_data_vbak.
SELECT vkorg kunnr vbeln netwr waerk
INTO CORRESPONDING FIELDS OF TABLE gt_vbak
UP TO p_max ROWS
FROM vbak
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg
and vbtyp = 'C'. " C = Sales Orders.
ENDFORM. " F_READ_DATA_VBAK
* Form f_display_data_vbak
FORM f_display_data_vbak.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VKORG' 'VBAK' '' ''.
m_fieldcat 'KUNNR' 'VBAK' '' ''.
m_fieldcat 'VBELN' 'VBAK' '' ''.
m_fieldcat 'NETWR' 'VBAK' 'WAERK' ''.
m_fieldcat 'WAERK' 'VBAK' '' ''.
* Display the first list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA_VBAK
* FORM USER_COMMAND *
FORM user_command USING u_ucomm TYPE syucomm
us_selfield TYPE slis_selfield. "#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_vbak INDEX us_selfield-tabindex INTO gs_vbak.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbap. " Read data from VBAP
PERFORM f_display_data_vbap.
ENDCASE.
ENDFORM. " USER_COMMAND
* Form f_read_data_vbap
FORM f_read_data_vbap.
SELECT vbeln posnr matnr arktx kwmeng vrkme netwr waerk
INTO CORRESPONDING FIELDS OF TABLE gt_vbap
FROM vbap
WHERE vbeln = gs_vbak-vbeln.
ENDFORM. " F_READ_DATA_VBAP
* Form f_display_data_vbap
FORM f_display_data_vbap.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VBELN' 'VBAP' '' ''.
m_fieldcat 'POSNR' 'VBAP' '' ''.
m_fieldcat 'MATNR' 'VBAP' '' ''.
m_fieldcat 'ARKTX' 'VBAP' '' ''.
m_fieldcat 'KWMENG' 'VBAP' '' 'VRKME'.
m_fieldcat 'VRKME' 'VBAP' '' ''.
m_fieldcat 'NETWR' 'VBAP' 'WAERK' ''.
m_fieldcat 'WAERK' 'VBAP' '' ''.
* Display the second list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbap.
ENDFORM. " F_DISPLAY_DATA_VBAP
2nd example
* Macro definition
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
TYPES:
* Data displayed in the first list
BEGIN OF ty_kna1,
kunnr TYPE kna1-kunnr, " Customer number
name1 TYPE kna1-name1, " Customer name
ort01 TYPE kna1-ort01, " Customer city
END OF ty_kna1,
* Data displayed in the second list
BEGIN OF ty_vbak,
vkorg TYPE vbak-vkorg, " Sales organization
kunnr TYPE vbak-kunnr, " Sold-to party
vbeln TYPE vbak-vbeln, " Sales document
netwr TYPE vbak-netwr, " Net Value of the Sales Order
END OF ty_vbak,
* Data displayed in the third list
BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln, " Sales document
posnr TYPE vbap-posnr, " Sales document item
matnr TYPE vbap-matnr, " Material number
arktx TYPE vbap-arktx, " Short text for sales order item
kwmeng TYPE vbap-kwmeng, " Order quantity
netwr TYPE vbap-netwr, " Net value of the order item
END OF ty_vbap.
DATA:
gs_kna1 TYPE ty_kna1,
gt_kna1 TYPE TABLE OF ty_kna1,
gs_vbak TYPE ty_vbak,
gt_vbak TYPE TABLE OF ty_vbak,
gt_vbap TYPE TABLE OF ty_vbap.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data_kna1.
END-OF-SELECTION.
PERFORM f_display_data_kna1.
* Form f_read_data_kna1
FORM f_read_data_kna1.
* Read customer data with a least one order
SELECT kunnr name1 ort01 INTO TABLE gt_kna1
FROM kna1 AS k
UP TO p_max ROWS
WHERE EXISTS
( SELECT kunnr FROM vbak WHERE kunnr = k~kunnr ).
ENDFORM. " F_READ_DATA_KNA1
* Form f_display_data_kna1
FORM f_display_data_kna1.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'KUNNR' 'KNA1'.
m_fieldcat 'NAME1' 'KNA1'.
m_fieldcat 'ORT01' 'KNA1'.
* Display the first list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_KNA1'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_kna1.
ENDFORM. " F_DISPLAY_DATA_KNA1
* FORM USER_COMMAND_KNA1 *
FORM user_command_kna1 USING u_ucomm TYPE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_kna1 INDEX us_selfield-tabindex INTO gs_kna1.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbak. " Read data from VBAK
PERFORM f_display_data_vbak. " Display orders
ENDCASE.
ENDFORM. " USER_COMMAND_KNA1
* Form f_read_data_vbak
FORM f_read_data_vbak.
SELECT vkorg kunnr vbeln netwr
INTO TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr = gs_kna1-kunnr.
ENDFORM. " F_READ_DATA_VBAK
* Form f_display_data_vbak
FORM f_display_data_vbak.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VKORG' 'VBAK'.
m_fieldcat 'KUNNR' 'VBAK'.
m_fieldcat 'VBELN' 'VBAK'.
m_fieldcat 'NETWR' 'VBAK'.
* Display the second list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_VBAK'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA_VBAK
* FORM USER_COMMAND_VBAK *
FORM user_command_vbak USING u_ucomm TYPE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_vbak INDEX us_selfield-tabindex INTO gs_vbak.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbap. " Read data from VBAP
PERFORM f_display_data_vbap. " Display items
ENDCASE.
ENDFORM. " USER_COMMAND_VBAK
* Form f_read_data_vbap
FORM f_read_data_vbap.
SELECT vbeln posnr matnr arktx kwmeng netwr
INTO TABLE gt_vbap
FROM vbap
WHERE vbeln = gs_vbak-vbeln.
ENDFORM. " F_READ_DATA_VBAP
* Form f_display_data_vbap
FORM f_display_data_vbap.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VBELN' 'VBAP'.
m_fieldcat 'POSNR' 'VBAP'.
m_fieldcat 'MATNR' 'VBAP'.
m_fieldcat 'ARKTX' 'VBAP'.
m_fieldcat 'KWMENG' 'VBAP'.
m_fieldcat 'NETWR' 'VBAP'.
* Display the third list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbap.
ENDFORM. " F_DISPLAY_DATA_VBAP
3rd Example
** Macro definition*
*DEFINE m_fieldcat.*
*add 1 to ls_fieldcat-col_pos.*
*ls_fieldcat-fieldname = &1.*
*ls_fieldcat-ref_tabname = &2.*
*append ls_fieldcat to lt_fieldcat.*
*END-OF-DEFINITION.*
*CONSTANTS :*
*c_x VALUE 'X'.*
*TYPE-POOLS: slis. " ALV Global types*
*TYPES:*
** Data displayed in the first list*
*BEGIN OF ty_vbak,*
*vkorg TYPE vbak-vkorg, " Sales organization*
*kunnr TYPE vbak-kunnr, " Sold-to party*
*vbeln TYPE vbak-vbeln, " Sales document*
*netwr TYPE vbak-netwr, " Net Value of the Sales Order*
*END OF ty_vbak,*
** Data displayed in the popup list*
*BEGIN OF ty_vbap,*
*posnr TYPE vbap-posnr, " Sales document item*
*matnr TYPE vbap-matnr, " Material number*
*arktx TYPE vbap-arktx, " Short text for sales order item*
*kwmeng TYPE vbap-kwmeng, " Order quantity*
*netwr TYPE vbap-netwr, " Net value of the order item*
*END OF ty_vbap.*
*DATA :*
*g_vkorg TYPE vbak-vkorg,*
*g_kunnr TYPE vbak-kunnr,*
*g_vbeln TYPE vbak-vbeln,*
*gt_vbak TYPE TABLE OF ty_vbak,*
*gt_vbap TYPE TABLE OF ty_vbap.*
*SELECT-OPTIONS :*
*s_vkorg FOR g_vkorg, " Sales organization*
*s_kunnr FOR g_kunnr, " Sold-to party*
*s_vbeln FOR g_vbeln. " Sales document*
*SELECTION-SCREEN :*
*SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED*
*PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.*
*SELECTION-SCREEN END OF LINE.*
*INITIALIZATION.*
*v_1 = 'Maximum of records to read'.*
*START-OF-SELECTION.*
*PERFORM f_read_data_vbak.*
*PERFORM f_display_data_vbak.*
** Form f_read_data_vbak*
*FORM f_read_data_vbak.*
*SELECT vkorg kunnr vbeln netwr*
*INTO TABLE gt_vbak*
*FROM vbak*
*UP TO p_max ROWS*
*WHERE kunnr IN s_kunnr*
*AND vbeln IN s_vbeln*
*AND vkorg IN s_vkorg.*
*ENDFORM. " F_READ_DATA_VBAK*
** Form f_display_data_vbak*
*FORM f_display_data_vbak.*
*DATA:*
*ls_fieldcat TYPE slis_fieldcat_alv,*
*lt_fieldcat TYPE slis_t_fieldcat_alv.*
** Build the field catalog*
*m_fieldcat 'VKORG' 'VBAK'.*
*m_fieldcat 'KUNNR' 'VBAK'.*
*m_fieldcat 'VBELN' 'VBAK'.*
*m_fieldcat 'NETWR' 'VBAK'.*
** Display the first list*
*CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'*
*EXPORTING*
*i_callback_program = sy-cprog*
*i_callback_user_command = 'USER_COMMAND'*
*it_fieldcat = lt_fieldcat*
*TABLES*
*t_outtab = gt_vbak.*
*ENDFORM. " F_DISPLAY_DATA_VBAK*
** FORM USER_COMMAND **
*FORM user_command USING u_ucomm TYPE sy-ucomm*
*us_selfield TYPE slis_selfield. "#EC CALLED*
*DATA:*
*ls_vbak TYPE ty_vbak.*
*CASE u_ucomm.*
*WHEN '&IC1'.*
*READ TABLE gt_vbak INDEX us_selfield-tabindex INTO ls_vbak.*
*CHECK sy-subrc EQ 0.*
*PERFORM f_read_data_vbap " Read data from VBAP*
*USING ls_vbak-vbeln.*
*PERFORM f_display_data_vbap.*
*ENDCASE.*
*ENDFORM. " USER_COMMAND*
** Form f_read_data_vbap*
*FORM f_read_data_vbap USING u_vbeln TYPE vbeln_va.*
*SELECT posnr matnr arktx kwmeng netwr*
*INTO TABLE gt_vbap*
*FROM vbap*
*WHERE vbeln = u_vbeln.*
*ENDFORM. " F_READ_DATA_VBAP*
** Form f_display_data_vbap*
*FORM f_display_data_vbap.*
*DATA:*
*ls_private TYPE slis_data_caller_exit,*
*ls_fieldcat TYPE slis_fieldcat_alv,*
*lt_fieldcat TYPE slis_t_fieldcat_alv.*
** Build the field catalog*
*m_fieldcat 'POSNR' 'VBAP'.*
*m_fieldcat 'MATNR' 'VBAP'.*
*m_fieldcat 'ARKTX' 'VBAP'.*
*m_fieldcat 'KWMENG' 'VBAP'.*
*m_fieldcat 'NETWR' 'VBAP'.*
*ls_private-columnopt = c_x. " Optimize width*
** Display items in a POPUP*
*CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'*
*EXPORTING*
*i_selection = ' '*
*i_tabname = 'GT_VBAP'*
*it_fieldcat = lt_fieldcat*
*is_private = ls_private*
*TABLES*
*t_outtab = gt_vbap.*
*ENDFORM. " F_DISPLAY_DATA_VBAP*
***************** END OF PROGRAM Z_ALV_GRID_AND_POPUP *******************
reward if helpful
raam -
Can any one plz send me a screenshots of LDB
Can any one plz send me a screenshots of LDB
Hi
Goto SE36 Tcode and press f4 and see the related LDB and its components like Selections, Structures, Database program etc
see the doc
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
<b>Reward points for useful Answers</b>
Regards
Anji -
Plz send material on portal development
hello sir/madam,
I am sandhya.I completed my B.Tech.I am new to Portal Development.Can u suggest me how to get knowledge on portal and what are the prerequisites for portal.What are the sites which gives information about portal development and where we can get the training.If u have any materials can u plz send me.
Thanking u,
Regards,
Sandhya Rani.ImmadiHi Sandhya,
Welcome the EP community. Great to see that you are starting early (just after college). The links for portal development are as follows:
1. To begin with EP there are vairous courses at the following link (from Beginner to Advanced)
https://www.sdn.sap.com/irj/sdn/elearning?rid=/webcontent/uuid/4b0c105e-0501-0010-bcb0-92478a4b2a17
2. Web Dynpro: Java based portal development is done using this tool(Infact it is picking up quite fast). The link contains tutorials for creating applicatios. Just the right thing for getting you started without boring you with too much theory:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/011be490-0201-0010-2f90-91e872e9490c
3. For HTMLB (HTML for Business), the language used for the portal development:
http://www.sapdesignguild.org./resources/htmlb_guidance/getting_started.html
The following links will get you started in Portal Development. Also I would advice that you have a good understanding on Java/J2EE. If you are new to it and want to get a quick & good understanding on Java/J2EE, I would suggest you go read Head First Series of Java books (Head First Java, Head First Servlet & JSP and Head First EJB).Really useful books, stresses only on the concepts and nothing more.
Also start visiting forums adn weblogs at SDN, there is a lot of stuff happening out here.
Hope this will help you. Let me know if you have any more queries.
Thanks & Regards
--Vishal Sood
PS: Please consider rewarding points for helpful answers.
Maybe you are looking for
-
How do I sync my mail accounts on multiple apple products?
My live.com account will not sync with my iphone and ipad. If I receive and delete emails on my phone, I have to do the whole process again with the same emails once I am on my ipad/laptop. I have 2 accounts and one of them is in sync with my other d
-
Is this right way ro save html file as excel file
Hi all Iam saving html page as excel page .Source code for this is BufferedWriter out = new BufferedWriter(new FileWriter("c:/Excel/price.xls")); BufferedReader in = new BufferedReader(new FileReader("C:/html/price.htm")); String str; while ((str = i
-
My Office Jet Pro 7780 just cannot print photos correctly - the color balance is all wrong, edges of objects in the photo are jagged/streaked, and the whole picture is blurry. There are no lines or patterns in the print itself that would indicate a
-
Thank u so much for removing the B- -DY YAHOO
Thank u for deleting the B L O O D Y Yahoo
-
Adobe Photoshop CC2014 has stopped working
keep getting this message after numerous installs?? Not sure why