To fetch VEKP-EXIDV2
Hello Experts ,
I want to fetch VEKP-EXIDV2. I have Sales Order No (VBAK-VBELN).Please suggest any Function Module or Logic.
Thanks.
Hi,
Do like this....
SELECT vbeln
vbelv
FROM vbfa
INTO CORRESPONDING FIELDS OF TABLE it_vbfa
WHERE vbtyp_n = 'J'
AND vbtyp_v = 'C'
AND vbelv = vbak-vbeln.
SELECT vpobjkey
venum
exidv2
brgew
gewei
FROM vekp
INTO CORRESPONDING FIELDS OF TABLE <your internl table>
for all entries in it_vbfa
WHERE vpobjkey = it_vbfa-vbeln. ..
Regards
Debarshi
Similar Messages
-
Update VEKP-EXIDV2 during automatic HU creation from outbound delivery
Hi All,
I need your suggestion / input on following scenario.
When I create an outbound delivery and save it, an automatic Transfer Order is created and at the same time an HU is created for delivery.
Now, I want to populate the field VEKP-EXIDV2 ( HU header -- Handling Unit's 2nd External Identification) with a specific logic.
Can anyone suggest a suitable EXIT or BADI or Enhancement point where I can populate the field VEKP-EXIDV2 ?
Note: I have tried using EXIT_SAPLV51S_001 and also BADI_HU_MAIN, but it is not helping in my case.
Because it is called only when Transfer Order is created manually (LT03), but is not triggered when TO is created automatically after saving the outbound delivery.
Thanks & Regards,
DevendraHi Ankur,
I am not going into HU creation screen in VL02N. There is some setting on functional side to create the automatic TO and HU during outbound delivery creation.
When I save the delivery, an entry in HU header table (VEKP) gets created automatically. I want to populate the field VEKP-EXIDV2. But, the EXIT or BADI as mentioned in my previous post is not helping in this case.
I would appreciate if you can throw some light in resolving this problem.
Thanks.
Devendra -
How to update the field VEKP-EXIDV2 in HU
Hi,
I need to update the field EXIDV2 in VEKP table. Do you know what function module to use? And please indicate the necessary fields to be used. Thanks.
LalynHi Prajith,
I looked at the FM you suggested. But I think, that FM gives me the value of the EXIDV2. I should be changing the value EXIDV2 in VEKP.THanks anyway.
Lalyn -
Hi,
We have a requirement to pick EXIDV2 from VEKP.This is an enhancement to the existing report.The query is in Infoset.Tables used in join are KNVV,KNA1,VBBE,ZNCUSTHRCHRCY. Other table like vbap,vbfa,likp,vbbe were used as select single with individual query in record processing area.
Business the existing report to be modified to accomadate VEKP EXIDV2 as this contains the tracking number.
It would be multiple under a delivery implies if in a delivery their are 5 items and are packed in seperate boxes all five items will have different tracking number which would be avaliable in exidv2.
Can you please help me out in writing query ?
Code in record proessing
CLEAR: ORDER, ORDERLINE, DELIVERY.
fill in base order/delivery info (determined by VBBE line type)
IF VBBE-VBTYP = 'J'. " DELIVERY LINE TYPE
DELIVERY = VBBE-VBELN.
get corresponding order and order line from document flow
SELECT SINGLE VBELV POSNV INTO (ORDER, ORDERLINE) FROM VBFA
WHERE VBELN = VBBE-VBELN
AND POSNN = VBBE-POSNR
AND VBTYP_N = 'J'.
VBBE-VBELN = ORDER. " OVERLAY ORDER INTO DOCUMENT FIELD FOR RPT CALL
*SELECT EXIDV UP TO 1 ROWS INTO (TRKNUM) FROM VEKP
WHERE VPOBJKEY = LIKP-VBELN.
*ENDSELECT.
ELSE. " ORDER LINE TYPE
ORDER = VBBE-VBELN.
ORDERLINE = VBBE-POSNR.
if this order line has a conf qty of zero, check the pre-built VBBE
summary table to see if it has any unconf qty. Only keep the record
if it does and build a dummy record to reflect the unconf qty.
IF VBBE-VMENG = 0.
READ TABLE T_VBBE_SUM WITH KEY VBELN = VBBE-VBELN
POSNR = VBBE-POSNR BINARY SEARCH.
CHECK SY-SUBRC = 0. " ONLY KEEP IF ITS FOUND IN TABLE
VBBE-VMENG = T_VBBE_SUM-UCQTY.
VBBE-MBDAT = '99991231'. " SET DUMMY DATE FOR UC QTY
ENDIF.
ENDIF.
get order header, credit info
CLEAR: OCDATE, CUSTPO, CRFLAG, CDFLAG,
SALESORG, VBAK-AUTLF, OENTRYID, HDRBLOCK.
SELECT SINGLE AERDAT AERNAM ALIFSK AVKORG A~VTWEG
AAUTLF ABSTNK C~CMGST
INTO (OCDATE, OENTRYID, HDRBLOCK, SALESORG, VBAK-VTWEG,
VBAK-AUTLF, CUSTPO, CRFLAG)
FROM VBAK AS A
INNER JOIN VBUK AS C ON AVBELN = CVBELN
WHERE A~VBELN = ORDER.
IF CRFLAG = 'B'.
CRFLAG = 'F'. " ONLY FILL WITH F IF DOCUMENT CREDIT STATUS NOT OK
ELSE.
CRFLAG = ' '.
ENDIF.
IF VBAK-AUTLF = 'X'.
CDFLAG = 'CD'.
ENDIF.
get order line info (route for points calculation), VBKD info
CLEAR: OCFLAG, VBAP-ROUTE, VBKD-KZAZU, BRAND, PRODH,UPCNUM. "
SELECT SINGLE PRODH ROUTE MVGR1 EAN11
INTO (PRODH,VBAP-ROUTE,BRAND,UPCNUM)
FROM VBAP
WHERE VBELN = ORDER
AND POSNR = ORDERLINE.
SELECT SINGLE KZAZU
INTO (VBKD-KZAZU)
FROM VBKD
WHERE VBELN = ORDER.
IF VBKD-KZAZU = 'X'.
OCFLAG = 'OC'.
ENDIF.
get material status and ABC indicator
CLEAR: MSTAT, MABC.
SELECT SINGLE AVMSTA BMAABC INTO (MSTAT,MABC)
FROM MVKE AS A
INNER JOIN MARC AS B ON AMATNR = BMATNR
WHERE A~MATNR = VBBE-MATNR
AND A~VKORG = SALESORG
AND A~VTWEG = VBAK-VTWEG
AND B~WERKS = VBBE-WERKS.
get deployment indicator
CLEAR: DEPLOYIND.
SELECT ZNINVDPLIR
FROM ZNDSBNW
INTO DEPLOYIND
UP TO 1 ROWS
WHERE MATNR = VBBE-MATNR
AND WERKS = VBBE-WERKS
AND ZNDSBAPLCD = 'DP'.
ENDSELECT.
get points
CLEAR: POINTS.
CALL FUNCTION 'Z_NLB_CALCULATE_POINTS'
EXPORTING PLANT = VBBE-WERKS
MATNR = VBBE-MATNR
KWMENG = VBBE-VMENG
ROUTE = VBAP-ROUTE
IMPORTING POINTS = POINTS
EXCEPTIONS SHIPTYPE_NOT_FOUND = 1
POINTS_NOT_AVAILABLE = 2
PCC_NOT_FOUND = 3
OTHERS = 4.
for deliveries, check for a shipment to get appointment info
CLEAR: APPTDT, APPTTM.
IF VBBE-VBTYP = 'J'. " DELIVERY LINE TYPE
SELECT SINGLE BDPTEN BUPTEN INTO (APPTDT, APPTTM)
FROM VTTP AS A
INNER JOIN VTTK AS B ON ATKNUM = BTKNUM
WHERE A~VBELN = DELIVERY
AND B~TNDRST IN ('AC','CF','AW','NW').
ENDIF.
get requested delivery date, line block off first VBEP schedule line
CLEAR: RQDATE, LNBLOCK.
SELECT SINGLE EDATU LIFSP INTO (RQDATE,LNBLOCK) FROM VBEP
WHERE VBELN = ORDER
AND POSNR = ORDERLINE
AND ETENR = 1.
for orders, get scheduled delivery date from VBEP
CLEAR: SCHDATE.
IF VBBE-VBTYP = 'C'. " ORDER LINE TYPE
IF VBBE-ETENR = 1.
SCHDATE = RQDATE. "USE REQ DLVY DATE ALREADY COMPUTED
ELSE.
SELECT SINGLE EDATU INTO (SCHDATE) FROM VBEP
WHERE VBELN = ORDER
AND POSNR = ORDERLINE
AND ETENR = VBBE-ETENR.
ENDIF.
ELSE. " DELIVERY LINE TYPE
for deliveries, get date from LIKP
SELECT SINGLE LFDAT INTO (SCHDATE) FROM LIKP
WHERE VBELN = DELIVERY.
ENDIF.
compute days late using scheduled and requested delivery dates
DAYSLATE = SCHDATE - RQDATE.
if this is a dummy unconf line, set days late to 999 and schdate to
dummy date
IF VBBE-MBDAT = '99991231'.
DAYSLATE = 999.
SCHDATE = '99991231'.
ENDIF.
get Delivery note comment (first 30 bytes) from order header
CLEAR: ORDCOMMENT.
TEXTNAME = ORDER. " SET NAME PARAMETER WITH ORDER NUMBER
CALL FUNCTION 'READ_TEXT'
EXPORTING ID = 'Z006'
LANGUAGE = 'E'
NAME = TEXTNAME
OBJECT = 'VBBK'
TABLES LINES = TXTLNS
EXCEPTIONS ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
check for successful return and then grab 1st comment line
IF SY-SUBRC = 0.
LOOP AT TXTLNS.
CASE SY-TABIX.
WHEN 1. ORDCOMMENT = TXTLNS-TDLINE. " WILL BE TRUNCED TO 30 BYTES
WHEN OTHERS. EXIT.
ENDCASE.
ENDLOOP.
ENDIF.
service level logic
CLEAR SERVICELEVEL.
IF MABC = 'A' AND DEPLOYIND = 'Y'.
SERVICELEVEL = 'S' .
ELSEIF MABC = 'B' AND DEPLOYIND = 'Y'.
SERVICELEVEL = 'S' .
ELSEIF MABC = 'C' AND DEPLOYIND = 'Y'.
SERVICELEVEL = 'S' .
ELSEIF MABC = 'A' AND DEPLOYIND = 'N'.
SERVICELEVEL = 'N' .
ELSEIF MABC = 'B' AND DEPLOYIND = 'N'.
SERVICELEVEL = 'N' .
ELSEIF MABC = 'C' AND DEPLOYIND = 'N'.
SERVICELEVEL = 'N' .
ENDIF.
Regards,
Rama
Message was edited by:
Sai RamaHi Ankur,
I am not going into HU creation screen in VL02N. There is some setting on functional side to create the automatic TO and HU during outbound delivery creation.
When I save the delivery, an entry in HU header table (VEKP) gets created automatically. I want to populate the field VEKP-EXIDV2. But, the EXIT or BADI as mentioned in my previous post is not helping in this case.
I would appreciate if you can throw some light in resolving this problem.
Thanks.
Devendra -
Enhancement during automatic HU creation for outbound delivery
Hi All,
I need your suggestion / input on following scenario.
When I create an outbound delivery and save it, an automatic Transfer Order is created and at the same time an HU is created for delivery.
Now, I want to populate the field EXIDV2 of table VEKP ( HU header table ) with a specific logic.
Can anyone suggest a suitable EXIT or BADI or Enhancement point where I can populate the field VEKP-EXIDV2 ?
Note: I have tried using EXIT_SAPLV51S_001, but it is not helping in my case. Because it is called only when Transfer Order is created manually (LT03), but is not working when TO is created automatically after saving the outbound delivery.
Thanks & Regards,
DevendraHI,
You can use the BADI BADI_HU_MAIN and the method HEADER_UPDATE_IN_PACKING.
REgards,
Ankur Parab
Edited by: Ankur Parab on Jul 28, 2009 6:53 PM
Edited by: Ankur Parab on Jul 28, 2009 6:56 PM -
START-OF-SELECTION.
PERFORM get_ekes.
PERFORM get_vepo.
PERFORM get_vekp.
PERFORM build_tree.
END-OF-SELECTION.
PERFORM display_tree.
*& Form get_vepo
* text
FORM get_vepo.
SELECT venum
vbeln
FROM vepo INTO TABLE i_vepo
FOR ALL ENTRIES IN i_ekes
WHERE vbeln EQ i_ekes-vbeln.
ENDFORM. "get_vepo
*& Form get_vekp
* text
FORM get_vekp.
SELECT venum
exidv2
FROM vekp INTO TABLE i_vekp
FOR ALL ENTRIES IN i_vepo
WHERE venum EQ i_vepo-venum.
ENDFORM. "get_vekp
*& Form get_ekes
* text
FORM get_ekes.
SELECT ebeln
vbeln
vbelp
xblnr
FROM ekes INTO TABLE i_ekes
WHERE ebeln IN s_ebeln.
ENDFORM. "get_ekes
*& Form
* text
*& Form build_tree
* text
FORM build_tree.
CLEAR : i_node, f_node.
f_node-type = 'T'.
f_node-name = 'Purchase Order'(002).
f_node-tlevel = '01'.
f_node-nlength = '25'.
f_node-color = '5'.
f_node-text1 = 'Purchase Document'.
f_node-tlength1 = '20'.
f_node-tcolor1 = '5'.
f_node-text2 = 'Item Number'.
f_node-tlength2 = '20'.
f_node-tcolor2 = '5'.
f_node-text3 = 'External Document'.
f_node-tlength3 = '25'.
f_node-tcolor3 = '5'.
APPEND f_node TO i_node.
CLEAR f_node.
LOOP AT i_ekes INTO f_ekes.
f_node-type = 'P'.
f_node-tlevel = '02'.
f_node-text1 = f_ekes-ebeln.
f_node-tlength1 = '20'.
f_node-tcolor1 = '3'.
f_node-text2 = f_ekes-vbeln.
f_node-tlength2 = '20'.
f_node-tcolor2 = '3'.
f_node-text3 = f_ekes-vbelp.
f_node-tlength3 = '20'.
f_node-tcolor3 = '3'.
f_node-text4 = f_ekes-xblnr.
f_node-tlength4 = '20'.
f_node-tcolor4 = '3'.
APPEND f_node TO i_node.
CLEAR f_node.
LOOP AT i_vepo INTO f_vepo WHERE vbeln EQ f_ekes-vbeln.
f_node-type = 'P'.
f_node-tlevel = '03'.
f_node-text = f_vepo-vbeln.
f_node-tlength = '20'.
f_node-tcolor = '4'.
f_node-text6 = f_vepo-venum.
f_node-tlength6 = '20'.
f_node-tcolor6 = '4'.
APPEND f_node TO i_node.
CLEAR f_node.
ENDLOOP.
LOOP AT i_vekp INTO f_vekp WHERE venum EQ f_vekp-venum.
f_node-type = 'P'.
f_node-tlevel = '04'.
f_node-text = f_vekp-venum.
f_node-tlength = '20'.
f_node-tcolor = '5'.
f_node-text6 = f_vekp-exidv2.
f_node-tlength6 = '20'.
f_node-tcolor6 = '5'.
APPEND f_node TO i_node.
CLEAR f_node.
ENDLOOP.
ENDLOOP.
ENDFORM. "build_tree
*& Form display_tree
* text
FORM display_tree.
CALL FUNCTION 'RS_TREE_CONSTRUCT'
TABLES
nodetab = i_node
EXCEPTIONS
tree_failure = 1
id_not_found = 2
wrong_relationship = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
EXPORTING
callback_program = sy-repid.
ENDFORM. "display_tree
this is the code i developed but there is a problem in drop down.hi vineesh ,
this is the full code
TABLES : ekes, vepo, vekp.
TYPES : BEGIN OF ivekp,
venum TYPE vekp-venum,
exidv2 TYPE vekp-exidv2,
END OF ivekp,
BEGIN OF ivepo,
vbeln TYPE vepo-vbeln,
venum TYPE vepo-venum,
END OF ivepo,
BEGIN OF iekes,
ebeln TYPE ekes-ebeln,
vbeln TYPE ekes-vbeln,
vbelp TYPE ekes-vbelp,
xblnr TYPE ekes-xblnr,
END OF iekes.
DATA : i_node TYPE TABLE OF snodetext,
i_vekp TYPE TABLE OF ivekp,
i_vepo TYPE TABLE OF ivepo,
i_ekes TYPE TABLE OF iekes.
DATA : f_node TYPE snodetext,
f_vekp TYPE ivekp,
f_vepo TYPE ivepo,
f_ekes TYPE iekes.
SELECT-OPTIONS :s_ebeln FOR ekes-ebeln.
START-OF-SELECTION.
PERFORM get_ekes.
PERFORM get_vepo.
PERFORM get_vekp.
PERFORM build_tree.
END-OF-SELECTION.
PERFORM display_tree.
*& Form get_vepo
* text
FORM get_vepo.
SELECT venum
vbeln
FROM vepo INTO TABLE i_vepo
FOR ALL ENTRIES IN i_ekes
WHERE vbeln EQ i_ekes-vbeln.
ENDFORM. "get_vepo
*& Form get_vekp
* text
FORM get_vekp.
SELECT venum
exidv2
FROM vekp INTO TABLE i_vekp
FOR ALL ENTRIES IN i_vepo
WHERE venum EQ i_vepo-venum.
ENDFORM. "get_vekp
*& Form get_ekes
* text
FORM get_ekes.
SELECT ebeln
vbeln
vbelp
xblnr
FROM ekes INTO TABLE i_ekes
WHERE ebeln IN s_ebeln.
ENDFORM. "get_ekes
*& Form
* text
*& Form build_tree
* text
FORM build_tree.
CLEAR : i_node, f_node.
f_node-type = 'T'.
f_node-name = 'Purchase Order'(002).
f_node-tlevel = '01'.
f_node-nlength = '25'.
f_node-color = '5'.
f_node-text1 = 'Purchase Document'.
f_node-tlength1 = '20'.
f_node-tcolor1 = '5'.
f_node-text2 = 'Item Number'.
f_node-tlength2 = '20'.
f_node-tcolor2 = '5'.
f_node-text3 = 'External Document'.
f_node-tlength3 = '25'.
f_node-tcolor3 = '5'.
APPEND f_node TO i_node.
CLEAR f_node.
LOOP AT i_ekes INTO f_ekes.
f_node-type = 'P'.
f_node-tlevel = '02'.
f_node-text1 = f_ekes-ebeln.
f_node-tlength1 = '20'.
f_node-tcolor1 = '3'.
f_node-text2 = f_ekes-vbeln.
f_node-tlength2 = '20'.
f_node-tcolor2 = '3'.
f_node-text3 = f_ekes-vbelp.
f_node-tlength3 = '20'.
f_node-tcolor3 = '3'.
f_node-text4 = f_ekes-xblnr.
f_node-tlength4 = '20'.
f_node-tcolor4 = '3'.
APPEND f_node TO i_node.
CLEAR f_node.
LOOP AT i_vepo INTO f_vepo WHERE vbeln EQ f_ekes-vbeln.
f_node-type = 'P'.
f_node-tlevel = '03'.
f_node-text = f_vepo-vbeln.
f_node-tlength = '20'.
f_node-tcolor = '4'.
f_node-text6 = f_vepo-venum.
f_node-tlength6 = '20'.
f_node-tcolor6 = '4'.
APPEND f_node TO i_node.
CLEAR f_node.
ENDLOOP.
LOOP AT i_vekp INTO f_vekp WHERE venum EQ f_vekp-venum.
f_node-type = 'P'.
f_node-tlevel = '04'.
f_node-text = f_vekp-venum.
f_node-tlength = '20'.
f_node-tcolor = '5'.
f_node-text6 = f_vekp-exidv2.
f_node-tlength6 = '20'.
f_node-tcolor6 = '5'.
APPEND f_node TO i_node.
CLEAR f_node.
ENDLOOP.
ENDLOOP.
ENDFORM. "build_tree
*& Form display_tree
* text
FORM display_tree.
CALL FUNCTION 'RS_TREE_CONSTRUCT'
TABLES
nodetab = i_node
EXCEPTIONS
tree_failure = 1
id_not_found = 2
wrong_relationship = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
EXPORTING
callback_program = sy-repid.
ENDFORM. "display_tree -
Link between ekko and vekp table
Hi All,
Can any let me know the relation ship or the connectivity for
purchase order (ekko- ebeln) and Handling unit (vekp-exidv).
i need to fetch the hu details based on the purchase order.
required urgently.
regards,
Ak
Edited by: arvind on Apr 11, 2008 9:10 AMhi neha ,
1.first u have to get MBLNR from AUFM for that order
2.Next u have to call FM
<b>AC_DOCUMENT_RECORD</b>
I_AWTYP MKPF--->Constant
I_AWREF 4900003215--->MBLNR
I_AWORG 2004--->Year
I_AWSYS
I_AWTYP_INCL
I_AWTYP_EXCL
I_BUKRS
I_VALUTYP 0
X_DIALOG X
then u will get the Accounting Documents.
regards
prabhu -
How to fetch external handling unit# using delivery#
Hi Gurus,
Please tell me relationship how to fetch the VBEP-EXIDV(external handling unit) Using LIKP-VBELN(Outbound Delivery no) .
Any suggestions welcome.
Thanks in advance,Table vekp has a field SPE_DELDEC.
Also if field STATUS = 60, its deleted. -
How to relate VEKP-VENUM with VBFA-VBELN
Hi All,
Can any one tell me how to fetch the Handling unit number VEKP-VENUM with delivery number VBFA-VBELN.
Thanks in advance.
Ramesh.VBFA is Document Flow Table.
VEKP-VENUM = VEPO-VENUM
VEPO-VBELN = LIKP-VBELN
VBFA_VBELN = LIKP_VBELN (if its a Subsequent Doc)
VBFA_VBELV = LIKP_VBELN (if its a Preceeding Doc)
Hope this Helps.
Vinodh Balakrishnan -
Pop email no longer fetching emails
I just updated to iOS 8.0.2 and today I noticed that my email accounts are no longer fetching new emails. When I swipe down to update, I get the spinning wheel of agony, and nothing. I check on my computer and I have numerous new emails.
This is a serious bug that needs to be corrected.
Also, third-party keyboard are still be deselected and the default apple keyboard keeps reappearing when I use an app that requires the use of the keyboard. Either make option to select default keyboard, or let the last selected keyboard always appear. When I use my phone after it's sat a bit, I must then hit the globe icon twice on the default apple keyboard to bring back my third-party keyboard.
Not polished!Hello Win-AppUser,
After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning mail issues:
iOS: Troubleshooting Mail
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
FAGL Table to fetch closing balances period wise
Dear Experts,
I want to fetch GL Closing balances period wise. I have checked GLT0, where no entry is recorded.
Further i have checked FAGLFLEXT, which does not support period wise closing balances.
I require GL closing balance, period wise, as shown in FS10N in FI.
My requirement is to display period wise closing balance, on GL, in the report.
Please suggest and advise.
Thanks in advance......AlokHi,
Debug the program RFGLBALANCE , the code and the logic used is easily understandable -
Error when fetching into a variable of ROWTYPE
I came across with a vied error when creating the body of a method.
Problem:
I have a Type called Emp_typ and a corresponding table Emp_tab.
When I create the body of get method it gives the following error msg :
Compilation errors for PACKAGE BODY CHAMITH.EMP_API
Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
Line: 9
Text: fetch get_emp_rec into emp_row;
Get Method body :
function get(id_ number) return emp_tab%rowtype IS
cursor get_emp_rec IS
select * from emp_tab;
emp_row emp_tab%rowtype;
begin
open get_emp_rec;
fetch get_emp_rec into emp_row;
close get_emp_rec;
return emp_row;
end;
However when I do the same without having a type upon the table emp_tab, it works fine.
Pls give me a solution for that.
Thanks,
ChamithHi,
Let me know the Oracle Database Version.
Regards,
Sailaja -
Text fetching from purchase order of type service po (Domestic)
hi ,
i have modified standard po medruck.
the Header text and Item text are getting displayed.
But for service Po (Domestic) type , header text and item texts from ME23n transaction are not getting displayed.
could you please help me....
i observed that text element 'SUPPL_TEXT' which is in main window of script is responsible for fetching the text.
help ........Hi Anne,
Vendor available (in your eg. X) in the output type messages screen for PO does not have any impact on accounting processes of main vendor (in your eg Y).
-Ravi -
In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?
The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.
-
Query help - Fetch employees working on two consecutive weekends(SAT/SUN)
Hello Gurus,
I have the following requirement and i need your help on this.
We have a table with all employees effort logged in for the days they have worked. a sample data is given below
TD_date Emp_id Effort Archive_month
2-Mar-13 123 8 Mar-13
9-Mar-13 123 8 Mar-13
2-Mar-13 213 4 Mar-13
3-Mar-13 213 4 Mar-13
24-Mar-13 213 8 Mar-13
9-Mar-13 312 4 Mar-13
10-Mar-13 312 4 Mar-13
16-Mar-13 312 8 Mar-13
In the above sample data, we have employee 123 who worked on consecutive SATURDAY and 312 who worked on consecutive weekends (9th, 10th and 16th March) but the employee 213 worked on 1st weekend and 4th weekend of the month(Archive_month). So the output should return the employees who worked on two consecutive weekends as below.
Emp_id
123
312
I have written a query to fetch all employees who worked only on a SAT or SUN which is given below, but i am not able to return the employees who worked on consecutive weekends and i need your help.
select emp_id, count(*)
from timesheet_archive
where archive_month = '03/2013'
and trim(to_char(td_date,'DAY')) in ('SATURDAY','SUNDAY')
group by emp_id having count(*) > 1
order by td_date desc
Please help me with an approach in SQL or PL/SQL to generate a report of employees who worked on two consecutive weekends.
Thanks,
Edited by: 999145 on Apr 9, 2013 11:08 PM
Edited by: 999145 on Apr 9, 2013 11:10 PMhi Manik,
thanks for your response!!
Please find the below create and insert scripts for your testing.
I am also validating the output with my requirement. Thanks for your help!
create table timesheet_archive as
(TD_date date,
Emp_id number(19,0),
Effort Float,
Archive_month varchar2);
insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 213,8,'03/2013');
insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
insert into timesheet_archive values (to_date('10-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 321,8,'03/2013');
insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 241,8,'03/2013');
insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
insert into timesheet_archive values (to_date('30-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
insert into timesheet_archive values (to_date('31-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
Maybe you are looking for
-
How to schedule a job in portal ?
Hi, How can we schedule job in portal just like we have in SAP ? thanks, B
-
Clicking on an application window in the background does not bring to front
I keep several applications open at the same time and organize them with Spaces. Some applications share all Spaces like Mail, Safari, Messenger. The problem is when I have mail as the front application and then click on Safari's window, Safari doesn
-
Error starting DBConsole. DBConsole could not be started successfully
Hello All. How to fix the following failure on Windows XP SP2. Oracle application server 10g release 2 (1.2.0.2) 1-SEVERE: Error starting DBConsole. DBConsole could not be started successfully 2-Configuration assistant "Single Sign-On Configuration A
-
Cinema 30" PC Monitor can use w/HDMI or DisplayPort?
Hello, I have a 5 years old 30" Cinema Display I use as PC monitor. I want to upgrade my motherboard, and the ones I am interested in do not have DVI ports anymore, only HDMI and DisplayPort. Is it possible to adapt my display DVI cable to either of
-
There are no notifications for your produce
Hi I have now Lap VIEW 2013 and I tried to dowload LabVIEW Control Design and Simulation Module after following the process a message shows that "There are no notifications for your products". Even if I have closed window firewall and setted the fil