How to retrieve an Attachment in eRecruitment?
I am trying to create a program that will retrieve an Attachment (resume) that a candidate has uploaded into the eRecruitment system. Infotype HRP5134 has a pointer to the attachment, but where is the attachment stored? Is there a method, function module or BAPI that can retrieve the attachment? Is it stored as an URL? These are some of the BAPI's and classes I have looked at:
BAPI_ERC_READ_ATTACHMENTS,
class CL_HRRCF_CANDIDATE_PC_ATTACH,
class CL_HRRCF_ATTACH_NEWATTACH_V,
class CL_HRRCF_ATT_DOVR_A,
class CL_HRRCF_ATT_DOVR_M,
class CL_HRRCF_ATTACH_ATTACHLIST_V,
class CL_HRRCF_ATTACH_M.
These are in the PAOC_RCF_UI package.
OS X, 10.8.5
iMac Model No. A1418
Similar Messages
-
How to retrieve/display attachment from PM Notifications???
Hi,
We use PM notifications and want to be able to provide a web search facility of notifications and indicate if a notification has attachments stored against it, if so then the user has the option to display the attachments in a new browser session.
How do I locate the attachments for a particular notification?
How do I retrieve the attachment for displaying in a browser?
Appreciate any help on this,
KurtLanka,
IP_RWMOD is not a valid import field.
Thereare these other 2 import fields:
IP_NO_COMMIT
IP_POPUP
I left them blank and the FM still worked, so not sure if I need to enter anything here.
Anyhow FM works perfect within SAP...but as I mentioned I need it for a standard web application.
<b>Will the "Service: Attachement list" dialog work outside SAP??</b> I have my doubts about it as it would be the perfect solution, ie. too good to be true when it comes to integrating with SAP.
If my hunch is right then back to square one, how else can I retrieve these attachments and have the ability to view each of the attachments in a web browser.
Regards,
Kurt -
Hi All,
I am developing a program to retrieve the GOS attachment from PO attachment and send to the vendor through email. Kindly advise me to resolve this problem because I have no idea how to retrieve the attachment from the GOS table.
Many thanks and best regards,
Ting Wei HongHi,
There is a class CL_GOS_MANAGER. Use that.
See here for an example:
data: o_gos type ref to cl_gos_manager.
data: o_att type ref to cl_gos_attachments.
data: ls_borident type borident.
ls_borident-objkey = gs_data-vgbel.
ls_borident-objtype = zcl_word=>co_busobject_worddocument.
free o_gos.
create object o_gos
exporting
ip_no_commit = space.
call method o_gos->start_service_direct
exporting
ip_service = 'VIEW_ATTA'
is_object = ls_borident
exceptions
no_object = 1
object_invalid = 2
execution_failed = 3
others = 4.
if sy-subrc <> 0.
message 'Geen bijlagen aanwezig. Toolbox wordt getoond' type 'S'.
o_gos->display_toolbox( is_object = ls_borident ).
else.
message 'Bijlagen aangepast' type 'S'.
endif. -
How to retrieve attachment file
I am trying to create a program that will retrieve an Attachment that a candidate has uploaded into the eRecruitment system. Infotype HRP5134 has a pointer to the attachment, but where is the attachment stored? Is there a method, function module or BAPI that can retrieve the attachment?
I want to retrieve the file and get the size of the file.Hi Subbu,
It is not stored in Archive. I got the solution. I just want to share with u. Actually i wanted the size of the documents. I came out with the solution in 2 steps.
1 step. : I retreived all the attached document through function module HRRCF_MDL_CAND_ATT_RETRIEVE (suggested by u).
2 step : i took the URL and used the function module SCMS_HTTP_GET_WITH_URL. this gave me the size of the document in bytes. (thats what i wanted)
Thank you very much for your efforts
Sample code for your knowledge
v_obj-plvar = '01'.
v_obj-otype = 'NA'.
v_obj-objid = '50000020'.
CALL FUNCTION 'HRRCF_MDL_CAND_ATT_RETRIEVE'
EXPORTING
cand_hrobject = v_obj
langu = sy-langu
HTTPS =
IMPORTING
records = it_record
messages = it_error .
LOOP AT it_record INTO wa_record.
CALL FUNCTION 'SCMS_HTTP_GET_WITH_URL'
EXPORTING
url = wa_record-attachment_url
BLANKSTOCRLF = ' '
IMPORTING
length = length
contenttype = contenttype
mimetype = mimetype
charset = charset
version = version
TABLES
data = data1
EXCEPTIONS
bad_request = 1
unauthorized = 2
not_found = 3
conflict = 4
internal_server_error = 5
error_http = 6
error_url = 7
error_signature = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP. -
How to attach a drawing and how to retrieve it
Hi Friends,
I want to attach my drawings and doc's associated with that material in Material Master. please can any body explain the procedure how to attach the document and how to retrieve it. and also how to control the unauthorised access? thanx in advance full marks will be awarded.
Edited by: sridhar kalepu on Mar 26, 2008 10:49 PMHello Shridhar,
You can do it by crating a material master. Then go to the additional data-->document data.
Specify your document type , where you have attched your drawing.
In this way you can attach your drawing to the particular matrial and it data.
To avoid unauthorized access:
Goto pfcg , create role and profile.
use follwoing auhtorisation object and restrict the user.
Authorization Object C_DRAD_OBJ (Object Link)
The following table shows authorization object C_DRAD_OBJ. This object controls which users can process which document info records, based on a combination of activity, object, and status.
Fields Possible Values Description
ACTVT
(Activity) 01 Create
02 Change
03 Display
06 Delete
DOKOB You must enter the data base table for the objects here (for example, MARA for material record).
STATUS
(Document status)
Regards,
Nitin
Reward points if useful.
Edited by: nitin bhagat on Mar 27, 2008 6:21 AM -
How can we add attachment in the PO using BAPI
How can we add attachment in the PO? I am using the BAPI_PO_CREATE1 function module to create the PO. I am getting a file from legacy system, this I need to add as an attachment into the particular PO through programming.
Note: After creation of PO the attachment should be available in ME23n transaction.REPORT ZBAPI_PO_CRATE.
data : PO_HEADER like BAPIEKKOC.
data : PO_HEADER_ADD_DATA like BAPIEKKOA.
data : PO_ITEMS like BAPIEKPOC occurs 0 with header
line.
data : PO_ITEM_SCHEDULES like BAPIEKET occurs 0 with
header line.
data : RETURN like BAPIRETURN occurs 0 with header
line.
DATA : BEGIN OF TAB OCCURS 0,
PO_NUMBER like BAPIEKKOC-PO_NUMBER,
DOC_DATE(10),
DOC_TYPE like BAPIEKKOC-DOC_TYPE,
CO_CODE like BAPIEKKOC-CO_CODE,
PURCH_ORG like BAPIEKKOC-PURCH_ORG,
PUR_GROUP like BAPIEKKOC-PUR_GROUP,
VENDOR like BAPIEKKOC-VENDOR,
PMNTTRMS like BAPIEKKOA-PMNTTRMS,
INCOTERMS1 like BAPIEKKOA-INCOTERMS1,
INCOTERMS2 like BAPIEKKOA-INCOTERMS2,
PO_ITEM like BAPIEKPOC-PO_ITEM,
MATERIAL like BAPIEKPOC-MATERIAL,
PUR_MAT like BAPIEKPOC-PUR_MAT,
ITEM_CAT like BAPIEKPOC-ITEM_CAT,
PLANT like BAPIEKPOC-PLANT,
NET_PRICE like BAPIEKPOC-NET_PRICE,
TAX_CODE like BAPIEKPOC-TAX_CODE,
DELIV_DATE(10),
QUANTITY like BAPIEKET-QUANTITY,
end of tab.
data: itab1 like alsmex_tabline occurs 0 with header
line.
DATA: gd_currentrow type i.
data : PURCHASEORDER like ekko-ebeln.
Data: tot_rec type i, "Total Records
gd_update type i, "Main Table Increement
Counter
gd_lines type i, "Success Table increement
Counter
w_textout like t100-text. "VARIABLE TO GET ERROR
LOG
data : begin of it_success occurs 0,
PURCHASEORDER LIKE ekko-ebeln, "PROJECT
end of it_success.
data : begin of it_error occurs 0,
pono like ekko-ebeln,
err_msg(73) TYPE c, "TO RETREIVE ERROR
MESSAGES
end of it_error.
data : pono like ekko-ebeln.
selection-screen begin of block b1 with frame.
skip 3.
parameter:p_infile like rlgrap-filename obligatory.
skip 3.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
PERFORM value_help.
start-of-selection.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_infile
i_begin_col = '1'
i_begin_row = '2' "Do not require
headings
i_end_col = '22'
i_end_row = '10000'
TABLES
intern = itab1
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. "Problem uploading
Excel Spreadsheet
endif.
*perform open_group.
sort itab1 by row col.
* Get first row retrieved
read table itab1 index 1.
* Set first row retrieved to current row
gd_currentrow = itab1-row.
loop at itab1.
* Reset values for next row
if itab1-row ne gd_currentrow.
append tab .
clear tab.
gd_currentrow = itab1-row.
endif.
case itab1-col.
when '0001'. "PGNAM
TAB-PO_NUMBER = itab1-value.
when '0002'. "RONAM
TAB-DOC_DATE = itab1-value.
when '0003'. "JVLEVEL
TAB-DOC_TYPE = itab1-value.
when '0004'. "FTTYPE
TAB-CO_CODE = itab1-value.
when '0005'. "LANG
TAB-PURCH_ORG = itab1-value.
when '0006'. "LTEXT
TAB-PUR_GROUP = itab1-value.
when '0007'. "LTEXT
TAB-VENDOR = itab1-value.
when '0008'. "LTEXT
TAB-PMNTTRMS = itab1-value.
when '0009'. "LTEXT
TAB-INCOTERMS1 = itab1-value.
when '0010'. "FTTYPE
TAB-INCOTERMS2 = itab1-value.
when '0011'. "FTTYPE
TAB-PO_ITEM = itab1-value.
when '0012'. "FTTYPE
TAB-MATERIAL = itab1-value.
when '0013'. "FTTYPE
TAB-PUR_MAT = itab1-value.
when '0014'. "FTTYPE
TAB-ITEM_CAT = itab1-value.
when '0015'. "FTTYPE
shift itab1-value left deleting leading space.
TAB-PLANT = itab1-value.
when '0016'. "FTTYPE
TAB-NET_PRICE = itab1-value.
when '0017'. "FTTYPE
TAB-TAX_CODE = itab1-value.
when '0018'. "FTTYPE
TAB-DELIV_DATE = itab1-value.
when '0019'. "FTTYPE
TAB-QUANTITY = itab1-value.
endcase.
endloop.
append tab.
clear tab.
sort tab by PO_NUMBER.
DELETE TAB WHERE PO_NUMBER = SPACE.
loop at tab.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-material
IMPORTING
OUTPUT = tab-material.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-PUR_MAT
IMPORTING
OUTPUT = tab-PUR_MAT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-vendor
IMPORTING
OUTPUT = tab-vendor.
concatenate tab-doc_DATE+4(4) tab-doc_DATE+2(2)
tab-doc_DATE+0(2)
into tab-doc_DATE.
concatenate tab-DELIV_DATE+4(4)
tab-DELIV_DATE+2(2)
tab-DELIV_DATE+0(2) into tab-DELIV_DATE.
pono = tab-PO_NUMBER.
if tab-po_number = pono.
PO_HEADER-DOC_DATE = tab-DOC_DATE.
PO_HEADER-DOC_TYPE = tab-DOC_TYPE.
PO_HEADER-CO_CODE = tab-CO_CODE.
PO_HEADER-PURCH_ORG = tab-PURCH_ORG.
PO_HEADER-PUR_GROUP = tab-PUR_GROUP.
PO_HEADER-VENDOR = tab-VENDOR.
PO_HEADER-PO_NUMBER = tab-PO_NUMBER.
PO_HEADER_ADD_DATA-PMNTTRMS = tab-PMNTTRMS.
PO_HEADER_ADD_DATA-INCOTERMS1 = tab-INCOTERMS1.
PO_HEADER_ADD_DATA-INCOTERMS2 = tab-INCOTERMS2.
PO_ITEMS-PO_ITEM = tab-PO_ITEM.
PO_ITEMS-MATERIAL = tab-MATERIAL.
PO_ITEMS-PUR_MAT = tab-PUR_MAT.
PO_ITEMS-ITEM_CAT = tab-ITEM_CAT.
PO_ITEMS-PLANT = tab-PLANT.
PO_ITEMS-NET_PRICE = tab-NET_PRICE.
PO_ITEMS-TAX_CODE = tab-TAX_CODE.
append po_items.
PO_ITEM_SCHEDULES-PO_ITEM = tab-PO_ITEM.
PO_ITEM_SCHEDULES-DELIV_DATE = tab-DELIV_DATE.
PO_ITEM_SCHEDULES-QUANTITY = tab-QUANTITY.
append PO_ITEM_SCHEDULES.
endif.
at end of PO_NUMBER.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
PO_HEADER = PO_HEADER
PO_HEADER_ADD_DATA =
PO_HEADER_ADD_DATA
* HEADER_ADD_DATA_RELEVANT =
* PO_ADDRESS =
* SKIP_ITEMS_WITH_ERROR = 'X'
* ITEM_ADD_DATA_RELEVANT =
* HEADER_TECH_FIELDS =
IMPORTING
PURCHASEORDER =
PURCHASEORDER
TABLES
PO_ITEMS = PO_ITEMS
* PO_ITEM_ADD_DATA =
PO_ITEM_SCHEDULES =
PO_ITEM_SCHEDULES
* PO_ITEM_ACCOUNT_ASSIGNMENT =
* PO_ITEM_TEXT =
RETURN = RETURN
* PO_LIMITS =
* PO_CONTRACT_LIMITS =
* PO_SERVICES =
* PO_SRV_ACCASS_VALUES =
* PO_SERVICES_TEXT =
* PO_BUSINESS_PARTNER =
* EXTENSIONIN =
* POADDRDELIVERY =
if PURCHASEORDER <> space.
commit work.
ADD 1 TO gd_update.
it_success-PURCHASEORDER = PURCHASEORDER.
append it_success.
clear:PO_HEADER,PO_HEADER_ADD_DATA,PURCHASEORDER.
refresh : PO_ITEMS,PO_ITEM_SCHEDULES,RETURN.
ELSE.
loop at return.
it_error-pono = tab-PO_NUMBER.
it_error-err_msg = return-MESSAGE .
Append it_error.
ENDLOOP.
clear:PO_HEADER,PO_HEADER_ADD_DATA,PURCHASEORDER.
refresh : PO_ITEMS,PO_ITEM_SCHEDULES,RETURN.
endif.
endat.
endloop.
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
* Display result report column headings
PERFORM display_column_headings.
* Display result report
PERFORM DISPLAY_SUCESS.
ENDIF.
* IF SUCESS FAILS Display Error Report
DESCRIBE TABLE it_error LINES gd_lines.
IF gd_lines GT 0.
PERFORM errorheadings.
PERFORM errorreport.
ENDIF.
*& Form display_column_headings
* text
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records inserted
successfully:'(013).
WRITE:/ sy-uline(15).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase order'(004), sy-vline.
WRITE:/ sy-uline(15).
ENDFORM. "display_column_headings
*Subroutine to display SUCESS REPORT
FORM DISPLAY_SUCESS.
FORMAT COLOR COL_NORMAL.
LOOP AT it_success.
WRITE:/ sy-vline,
(10) it_success-PURCHASEORDER, sy-vline.
CLEAR it_success.
ENDLOOP.
WRITE:/ sy-uline(15).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. "
DISPLAY_REPORT
*& Form errorreport
* text
FORM errorreport.
LOOP AT it_error.
WRITE:/ sy-vline,
(10) it_error-pono, sy-vline,
(40) it_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
endform. "errorreport
*& Form ERRORHEADINGS
* text
FORM ERRORHEADINGS.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during
update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'ERROR.'(009), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. "ERRORHEADINGS
**& Form value_help
** text
** --> p1 text
** <-- p2 text
FORM value_help .
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',*.*,*.*.'
MODE = 'O'
TITLE = ' '
IMPORTING
FILENAME = p_infile
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. "value_help -
How to retrieve/display PM Notification attachments in Browser???
Hi,
We use PM notifications and want to be able to provide a web search facility of notifications and indicate if a notification has attachments stored against it, if so then the user has the option to view the attachment selected in a new browser session.
How do I retrieve the attachment for displaying in a browser?
Appreciate any help on this,
KurtHi,
I´m actually a PHP guy and can´t provide any ASP
programming tip, but I use to solve this scenario like this ::
create a recordset
(SELECT firstname, lastname FROM user_table WHERE user_id =...
session_id or whatever), and then display the user´s
"dynamic data" based on what´s returned from the recordset.
You certainly might also be able to match the recordset against the
submitted email address -- in this case the query should use the
"WHERE user_email = form variable" condition
Does this help ? -
How to retrieve Pages docs in Finder? Can't find recent saved Pages documents
How to retrieve Pages docs in Finder? Can't find recent saved Pages documents
Tried that. Dropdown window only offered these options: 'Lock Duplicate, Browse all versions. It did NOT give me the location of the document. I want to go to the document and attach it to an email. I cant find the document on my computer. There is no option to 'save as' under finder window. Only 'save a version'
-
My safari menu bar is missing. The menu bar for desktop, HD, and apps appears, but when I click on Safari, it disappears, so I can no longer see my buttons for History, etc. I think my husband (pc user) clicked it away when borrowing my computer. Any ideas how to retrieve it? Thanks.
I too was having the same problem However, I could access both the menu bar and the dock by hovering my mouse over them so it wasn't a huge problem but I prefered having it there anyway. I was not in full screen mode and I could still go into full screen mode if I wanted to. I found the easiest solution was to just quit safai and restart it, but it might not work for you considering you couldn't access you menu bar either way.
I found this article that allows you to hide/show the menu bar and the dock through TextEdit (didn't work for me) http://www.mactricksandtips.com/2009/07/hide-the-menubar-or-dock-in-specific-app s.html It is pretty old so it might not work for lion and a bit risky if you don't know what you're doing so I wouldn't really recommend doing it this way.
And KSheppard, I know it's not really any of my buisness, but the way to get answers to a question isn't by insulting others and being quick-tempered. Even if you feel like you were insulted first, don't try snapping at people who aren't obligated to help you. Honestly, it just makes everything easier if everybody is cooperative and polite. -
My all voice memos are deleted,how to retrieve them
my all voice memos are deleted after syncing it with itunes...how to retrieve them ??
Thanks Bro. I have backup. and I did the same thing twice but only 26 contacts appear on the device. Now again yesterday after your suggestion again I restored the device but the result was same. Then I thought a new thing. I restored the device one more time but after restoring I didn't configure the icloud account. Surprisingly all my old contacts are there in the device but those 26 contacts are not there. Now I will tell you how this must have happened? I had 3gs earlier. that was stolen 3 months ago. I put the device in lost mode. I purchased new iphone4. I restored with itune. All my data came back. After that I saved these 26 new contacts to my device which also saved in icloud but when I tried to backup on my pc it was not happening. the messege coming device disconnected. 2 days back my stolen device came online. Lost mode was activated by icloud. But what I think in between that time the other fellow must have deleted the phone contacts. And as per icloud also deleted the same. Only the 26 contacts which I saved in these 3 months remained in icloud. Now bro can u help me out? What I should do? I have 26 contacts in icloud and < 500 in my device. I don't understand when all other Co's mobile you can import contacts from any backup file iphone can not. This is the DRAWBACK OF IPHONE.
-
itunes asked me if iwanted to erase all my files on my iphone when i connected it to my second computer.
i clicked yes
and all of my very important voice memos were deleted
however none of my photos were deleted...... and they count as files don't they?
anyway i need help on how to retrieve deleted voice memos
PLEASE HELP!!!You should never try to sync your phone with more than one computer or you will lose your data. The pictures were not deleted because the sync process does not touch Camera Roll pictures (it only includes them during the backup step of the sync process).
If you had these voice memos on your phone when you last synced it to your first computer, and if you haven't synced to this computer since then, you could restore from the backup created during your last sync. This will replace the data on your phone with the data from this older backup so anything new will be lost. If you think that is the case, do not sync your phone again to the first computer prior to restoring from this backup or you will overwrite it and the backup will be lost. Instead, prior to connecting your phone to your first computer, open iTunes and disable automatic syncing by going to iTunes Preferences and on the Devices tab checking "Prevent...from syncing automatically". Then connect your phone and when it appears in iTunes on the left sidebar right-click on its name and select Restore From Backup and choose your last backup (containing your voice memos).
If you didn't have these voice memos on your phone when you last synced to your first computer, or if you have synced again to your first computer since losing your data, then your voice memos and other data are lost. -
How to retrieve sharepoint list data and show it on excel-addin using C#
Hi,
we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
. once data is shown on excel , user modifies it and update/save the record back to sharepoint.
can you please give some samples and suggest any links to start with development.
Thanks
chaituHi chaituatp,
For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
How to: Retrieve List Items using JavaScript:
http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
VSTO application show data in datagridview:
http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support -
How to retrieve 2 values from a table in a LOV
Hi
I'm pretty new to APEX. I try to retrieve two values from a table using a LOV. I have a table named DEBIT with then columns SITE, NAME and KEY
I want to display NAME to the user in a list. When the user select an item from the list, I want to retrieve the data of the SITE and KEY column of this item in order to launch an SQL command based on this two values.
How to retrieve thes two values whant the user chooses an item from the list ?
I apologize for my english, being french.
Regards.
ChristianChristian,
From what I understood about your requirement, you want a 'select list with submit' which displays "NAME" and based on the value selected, you want to get the corresponding values for "SITE" and "KEY" from the table.
<b>Step 1: Create a select list with submit, say P1_MYSELECT </b><br><br>
Use something like this in the dynamic list of values for the select list: <br>
SELECT NAME display_value, NAME return_value
FROM DEBIT<br><br>
<b>Step 2: Create a page process of type PL/SQL block. Also create 2 hidden items P1_KEY and P1_SITE. </b><br><br>
In the PL/sQL, write something like:
DECLARE
v_key DEBIT.KEY%TYPE;
v_site DEBIT.SITE%TYPE;
CURSOR v_cur_myvals IS
SELECT KEY, SITE
FROM DEBIT
WHERE NAME = :P1_MYSELECT;
BEGIN
OPEN v_cur_myvals;
LOOP
FETCH v_cur_myvals
INTO v_key,v_site;
EXIT WHEN v_cur_myvals%NOTFOUND;
:P1_KEY := v_key;
:P1_SITE := v_site;
END LOOP;
CLOSE v_cur_myvals;
END; <br><br>
Then you can use these values for whatever purpose you need to.
Hope this helps. -
How to retrieve the values from a table if they differ in Unit of Measure
How to retrieve the values from a table if they differ in Unit of Measure?
If no data is read
- Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
If no quanity in result internal table
- There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
- - Remove the CORRESPONDING, so quantity will fill the first field adqntp1. ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
- - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
* Fill the internal table
SELECT msehi adqntp
INTO TABLE internal table
FROM lipso2
WHERE vbeln = wrk_doc1
AND msehi IN ('KL','K15','MT').
* If required move the read quantity in the appropriate column.
LOOP AT internal_table ASSIGNING <fs>.
CASE <fs>-msehi.
WHEN 'K15'.
<fs>-adqnt2 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
WHEN 'MT'.
<fs>-adqnt3 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
ENDCASE.
ENDLOOP.
- You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
Regards,
Raymond -
How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g
Hi Every One,
Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
Thanksshuttle's valuechangeevent would fire when you shuttle items back and forth.
public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
if (list != null){
for (int i=0; i<list.size(); i++) {
int l = list.size()-1;
val = list.get(l).toString(); //returns , delimited string
if (val != null){
val = val.replaceAll("[\\[\\]]", "");
StringTokenizer st = new StringTokenizer (val, ",");
int nto = st.countTokens ();
for (int j = 0; j < nto; j++)
String token = st.nextToken ();
..........
Maybe you are looking for
-
Firmware for 3Com Bluetooth PCMCIA card
I've just recieved my new 3com pcmcia bluetooth card (3CRWB6096). According to google it was supposed to work with Linux. I think it will, but there's something about needing the windows firmware file- BT3CPCC.bin. I have said file, and have tried pu
-
Technical Documentation Template
Hi, I am wondering whether we have a Technical Specification document Template for a CE project? Appreciate if you can point me there. Thanks Naresh
-
Hi all, My scenario is RFC>XI>FTP, I need to receive allert if FTP Server is not responding. I configured the rule, but however I don't get the allert to allert inbox. Will appreciate all help, Thanks a lot
-
Why is the New iPad is super slow in photo album?
Hi, I am a previous owner of iPad 2 and am VERY HAPPY with it. I was so excited to get the New iPad, but now very unhappy with it. The advertisement of quad core graphics chip does not do any good. The photo album took at least 3 times longer to disp
-
Cannot submit expense report due to cost centre and location
Hi, Has anybody faced the issue where you cannot submit your expense report? The system gives an error for every expense line...'cost centre - select a valid value and same for location'. However the values of the cost centre and location are valid i