ABAP program to take input parameter from variant, execute KSB1 and export
Hi Friends,
My client asking change request in CO
The Change request is "ABAP program to take input parameter from variant, execute KSB1 and export the output into an excel sheet and park the document in a designated location"
Pls let me know actually i am a FICO consultant what i can do in this change request
Thanks,
Santi
Hi
First I dont you would need to create a ABAP to generate the report in Excel.
You can look at this option. Execute the report Go to->Change Layout, Click on the view option, On the Preferred View Select Microsoft Excel, Save the layout, provide a layout name with /XYZ.
Now when you want to execute KSB1 with excel, just execute KSB1 with /XYZ layout, it would open in Excel, export to which ever location you want.
Or just simply save the report as Excel using the Excel button on the tool bar.
Regards,
Suraj
Similar Messages
-
Modifying the cell content based on input parameter from variable screen.
I am trying to modify a cell content in the BEX Web Application Report based on the input parameter from the variable screen.
I am already aware of how to change the cell content by creating a new ABAP class and inheriting CL_RSR_WWW_MODIFY_TABLE.
I do not know how to get the input parameter variable from the variable screen in my custom class ZCL_RSR_WWW_MODIFY_TABLE. I am not very familiar with ABAP and would appreciate your help.
Thanks
Sowminiin the start method
define a work area like line of n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS
loop at n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS into <wa> ..
endloop .
This will have all the filter, variable values entered in the selection.
Regards
Raja -
Problem calling a method which takes a parameter from a table
Hi guys,
I'm very new to jsf and hope you can help me out.
On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
here's a piece of code thats already working:
<rich:dataTable var="data" value="#{pathwayBean.orgList}">
<rich:columnGroup>
<rich:column>
<h:outputText value="#{data.name}" />
</rich:column>
</rich:columnGroup>
</rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
Thanks in advance,
Alexuse actionlistener.
here a typical code that works fine for me:
(JSF 1.2)
//Java
private Integer selectedItemId=null;
public void selectItem(ActionEvent event) {
// Find the UIParameter component by expression
UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
// parse the value of the UIParameter component
try {
selectedItemId = Integer.parseInt(component.getValue().toString());
// find itemBean here using selectedItemId
} catch (Exception e) {
logger.error(e, e);
logger.info(" +++ selectedItemId =" + selectedItemId);
public String viewItem() {
//create view beans here
return "itemView";//return appropriate view.
//JSF
<h:column>
<h:commandLink id="View"
action="#{itemListBean.viewItem}"
actionListener="#{itemListBean.selectItem}">
<h:outputText value="select"/>
<f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
</h:commandLink>
</h:column> -
Transaction/program to change AVAILABLEFLAG parameter from table UJ0_PARAM_APP
Hi Experts,
Do you know if is there a transaction/program to change BPC environment status (for example, a transaction/program that changes AVAILABLEFLAG parameter from table UJ0_PARAM_APP to "0" or "1").
Regards,
DaniloHi Danilo,
i'm trying to use the same method as you in BPC 7.5.
Did the method worked for you to set offline and online the application?
Could you please tell me how you used it?
Thanks.
Amine -
How can I take the pics from my old ipod and transfer them onto my computer without deleting anything?
Pictures on an iPod are stored in a special format, optimized for the iPod's small lower resolution screen, to save storage space. iTunes puts them into that format when syncing. There is setting in iTunes, on the iPod's Photos screen (where you set up syncing of photos) for Include full resolution photos. If that checkbox was checked when you synced the photos to the iPod, THEN you can Enable disk use and find those photo files on the iPod in the Photos folder.
Otherwise, you cannot get your photos back, using iTunes. There may be third-party utilities that can extract individual photos from the iPod, but they will still be lower-resolution versions of the original photo. -
How do you take a picture from the photo library and put it on your desktop?
I want to be able to take a picture from my photo libray, and drop it on my desktop to be able to access it immediately. Is this possible?
There are lots of ways of moving files.
A simple and popular way to copy files.
http://wiki.dropbox.com
Using iTures to transfer files:
http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
Files Connect -- The swiss army knife of remote file connect
https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
For syncing pc or mac folders to iPad applications.
"Using SugarSync, you simply designate folders that you want to “sync” to the cloud and it keeps everything in sync anytime you make changes. This is the way cloud storage should be done and especially if you are using your iPad for buisness or for school."
The only potential downside is that so many apps for the iPhone/iPad come with Dropbox sync built in which makes it extremely convenient.
http://www.tcgeeks.com/best-ipad-cloud-sync-app/
Doug says:
"This can be done with Dropbox as well using one of the many Dropbox addons…"
http://wiki.dropbox.com/DropboxAddons -
Need to take a value from the csv file and query in a OAF page.
Hello,
I have a requirement to take the list of employee numbers in a csv file and display its corresponding job on the page.
I have created a item 'MessageFileupload' where the user will upload the csv file containing the employee number and a Button 'Display Jobs' which will display the corresponding jobs on the page.
Any idea how to take the values from the csv file and query it?
Regards,
den123.Hi ,
Check
http://oraclearea51.com/contribute/post-a-blog-article/csv-file-upload-for-oa-framework.html
http://www.roseindia.net/jsp/upload-insert-csv.shtml
Below code works from above blogs.
package xx.oracle.apps.pa.Lab.webui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
// import java.io.*;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.jbo.domain.BlobDomain;
import oracle.cabo.ui.data.DataObject;
import oracle.jbo.Row;
* Controller for ...
public class deptCsvUploadCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
// Code Addition Started for CSV upload
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("deptCsvVO1");
//if ("GoBtn".equals(pageContext.getParameter(EVENT_PARAM)))
if (pageContext.getParameter("GoBtn") != null)
System.out.println("Button Pressed");
DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
String fileName = null;
String contentType = null;
Long fileSize = null;
Integer fileType = new Integer(6);
BlobDomain uploadedByteStream = null;
BufferedReader in = null;
try
fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
fileSize = new Long(uploadedByteStream.getLength());
System.out.println("fileSize"+fileSize);
catch(NullPointerException ex)
throw new OAException("Please Select a File to Upload", OAException.ERROR);
try{
//Open the CSV file for reading
String lineReader="";
long t =0;
String[] linetext;
while (((lineReader = in.readLine()) !=null) )
//Split the deliminated data and
if (lineReader.trim().length()>0)
System.out.println("lineReader"+lineReader.length());
linetext = lineReader.split(",");
t++;
//Print the current line being
if (!vo.isPreparedForExecution())
vo.setMaxFetchSize(0);
vo.executeQuery();
System.out.println("Trimmed "+ linetext[1].replace("\"", ""));
Row row = vo.createRow();
row.setAttribute("Deptno", linetext[0].trim());
row.setAttribute("Dname",linetext[1].trim().replace("\"", ""));
row.setAttribute("Loc",linetext[2].trim().replace("\"", ""));
//row.setAttribute("Column4", linetext[3].trim());
vo.last();
vo.next();
vo.insertRow(row);
catch (IOException e)
throw new OAException(e.getMessage(),OAException.ERROR);
//else if (pageContext.getParameter("Upload") != null)
am.getTransaction().commit();
throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);
}Thanks,
Jit -
Can I take a song from my iTunes library and make it a ringtone for my iPhone 4 if so how thanks
http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
-
Call an ABAP program or a function module from command prompt/python script
Dear All,
I want to call a function module/ABAP program from command prompt or a python script.
Let me explain with an example.
There is a function module "z_add" that takes two integers as input parameters and generates their sum.
the sum is the output parameter.
Now i want to call this function module from command prompt / python script and pass parameters to this function module.
In return i must get the sum(i.e. the output of function module).
I tried using STARTRFC ,was able to call the FM but could not get the return value(output) from FM.
Can you please provide me the code of such a function module and the method to call it thereby passing parameters and getting the sum.
Thanks and regards,
Gaurav
Edited by: gauravkec2005 on Mar 4, 2010 7:41 AMthank you both! helpful answers! :o)
anyway!
i have written the program which is called from the SAPScript:
/: PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
/: USING &BKPF-BUKRS&
/: CHANGING &VATNUMBER&
CE VAT Registration No : &VATNUMBER&
REPORT zfi_f140_operations.
FORM get_vatnumber TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
DATA: lv_co_code TYPE bukrs,
lv_vat_no TYPE stceg.
READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
MOVE in_par-value TO lv_co_code.
SELECT SINGLE stceg FROM t001
INTO lv_vat_no WHERE bukrs = lv_co_code.
out_par-name = 'VATNUMBER'.
WRITE lv_vat_no TO out_par-value.
CONDENSE out_par-value.
MODIFY out_par INDEX 1.
ENDFORM.
it is not working and i cannot work out why...
i have not been ABAPing for very long but have had a go....
any thoughts as to what i have done wrong?
or point me where i should be looking? thank you! -
Calling PLSQL Procedure with CLOB input parameter from JDBC
Hi..
I've got a PLSQL procedure with a CLOB object as input parameter:
function saveProject (xmldoc CLOB) RETURN varchar IS
I want to call that procedure from my JDBC Application as...
String data = "..."
CallableStatement proc = conn.prepareCall
("begin ? := saveProject (?); end;");
neither
proc.setCharacterStream(2, new StringReader(data, data.length());
nor
proc.setString(2, data);
will work.
The Application throws java.sql.Exception: ... PLS-00306 wrong
number or types of arguments in call 'SAVEPROJECT'
How can I use set setClob method?
The Problem is: with Oracles CLOB implementation I can't create
an Instance, and from the CallableStatement a can't get a
Locator for a CLOB-Object.
This CLOB stuff makes me really nuts!
please somebody help me.. thanks
AlexHi All,
You can not make it like that.
You can not make clob as input parameter.
Do you want an easy way?
This is the easy way.
sample:
function myFunction(S varchar2(40))
return integer as
begin
insert into TableAAA values(S)
--TableAAA only contains 1 column of clob type
end;
This will work the problem with this is the parameter is in
varchar2 right? so there will be limited length for it.
You can do this to call that function:
nyFunction('My String that will be input into clob field');
There's another slight difficult way, I understand that you have
installed Oracle client/server in your system, try to look at
jdbc folder and try to find demo.zip in that folder, you can
find several ways of doing thing with jdbc.
Have a nice day,
Evan -
Passing the same input parameter twise in execute sql task
Hi All, I want to insert some values to 3 different tables in sql server. Execute sql task is used to populate three tables. Here is the sql statement.
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT ?, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT ?, COL2, COL3 FROM TABLE_B
Input parameter is mapped as follows :
Variable name : User::EffectiveDate
Direction : Input Data Type :
Date Parameter name :0
Parameter size :-1
User::EffectiveDate is datetime variable.
When the package is executed, it throws an error.
[Execute SQL Task] Error: Executing the query " " failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems
with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. I am not sure what I am doing wrong here. If anyone could point me to the right direction, I really appreciate.
Thanks
shamenTo expand on the other answers.
Your SQL command
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT ?, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT ?, COL2, COL3 FROM TABLE_B
It using 3 input variables. I assume you didn't pass 3 variables and you want @DT to be column 1 in each. In that case you would use:
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT @Dt, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT @Dt, COL2, COL3 FROM TABLE_B -
How can i take my music from my ipod touch and put it back on my pc?
I had just recently got my computer cleaned and i had to start over with reinstalling itunes. I can get all my purchased music, but I can't find all my files of music that i have cut and put back onto itunes. I cant even find the files on the computer. Everything including my cut music is still on my IPOD TOUCH, but how do I transfer those songs back onto my itunes? Help! =]
Music is moved from computer to iPod and not the other way.
Allan -
Batch change dpi from 72 to 300 and export as jpg
Hi All,
I have searched high and low, and have yet to find a script that will accomplish this task. I am in need of a script that will change Illustrator's default 72 dpi, to 300 dpi so I can print a series of (about 200) respectable looking images. They also need to be exported to jpg.
Is this possible to do in batch?
I have tried countless approaches. The closest I have come is using Graphic Converter Pro, unfortunately it cannot change the dpi from 72 to 300 (as far as I could tell). Any help is greatly appreciated. I have access to Mac OS and Windows. I've been trying to tackle this for quite some time. Thank you!Hi, thanks for your responses. I do have Photoshop. What I am trying to do is take about 100 .ai files and export them to .jpg. However, they are going to be printed, and any sort of batch export as .jpg I have tried so far has resulted in substantial resolution (72 dpi). I am well aware of how to change the resolution for exporting each file individually, however what I want to do is batch the whole process together. I will try the resizing approach. Thanks both of you!
-
How can i convert from alac to mp3 and export to artist/album hierarchy
I am trying to populate a 32GB SD Card with music to listen to in my car. My itunes library is largely in apple lossless format, but the car stereo does not play that format.
I have created a playlist of all of the music I'd like to have on the SD Card (but its in apple lossless format).
So what I'd like to do is:
a) Bulk convert a large number of apple lossless files to MP3.
b) Export the MP3 files to an external Finder folder, organized in Artist/Album hierarchy
c) Delete the MP3 files from the itunes library so as to have just the apple lossless version maintain in the itunes library
Sounds pretty simple, but I'm having a devil of a time trying to figure it out.
I can find a way to do the conversion and export the MP3 files (and subsequently deleted from the itunes library), but they will not be organized by Artist/Album in the Finder folder.
Similarly, I can export a bunch of files from itunes to a Finder folder and have it be organized by Artist/Album.
I just can't do one followed by the other.
I suppose this would also work if instead of exporting the newly created MP3 files, it would establish a new playlist in itunes with these. Then, I could just export them and have them then organized by Artist/Album; and then I could delete all of the MP3 files in the playlist.
Any thoughts or ideas on how to accomplish this goal? (I do know the manual way of doing this, but am trying to figure out a faster, more elegant way).
MI ask because you wrote, "I just can't do one followed by the other".
You can. Just do one followed by the other.
Convert the files to mp3.
Put them all into a playlist. A smart playlist with Kind is MP3 and added in last one day will do it for you.
Select the songs in teh smart playlist
Run Export to Album Folders script.
Select all the songs in the playlist then Command Delete to remove them from iTunes. -
ABAP program to resubmit itself with temp variant
Hi there,
I want a program to be able to re-submit itself in the background. I can do this, but if the user does not use a variant, how do I submit the program with the user-defined selections? This program may be run often and I don't want to create a massive list of variants. This must work whether they select a variant, or manually input selections.lv_job_name will be the program name itself
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_job_name
IMPORTING
jobcount = lv_job_nr
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF syst-subrc = 0.
*submit job with all the selection screen params...
<b> SUBMIT (lv_job_name)
WITH applfile = applfile " all your variables go here
WITH p_lines = p_lines
WITH rfcdest = rfcdest
WITH p_selmtd = lv_selmtd
USER syst-uname
VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.</b>
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_job_nr
jobname = lv_job_name
strtimmed = 'X'
IMPORTING
job_was_released = lv_job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF syst-subrc <> 0.
MESSAGE i162(00) WITH
'An error occured while closing the background job.'.
STOP.
ENDIF.
ENDIF.
ENDIF.
SKIP 1.
WRITE: / 'Background process', lv_job_name_string , 'called successfully' NO-GAP.
WRITE: / 'You can check the job in transaction SM37'.
Message was edited by:
Kris Donald
Maybe you are looking for
-
I am trying to home share with my sister. I have it down to where I can copy all the songs I want, but it won't allow me to import them because my iTunes doesn't show the "import" button at the bottom. So what do I do now?
-
Reason code auto input after auto payment transaction (t-code:F110)
Hi Experts, For line item of G/L account 190810, reason code(001) will be auto input during auto payment transaction. But for GL account 190841, reason code is not auto input. The posting process are all the same. Please help to advise how should we
-
Disappointed that personal hotspot not enabled in new iPads
Dear Apple, I currently own a iPad, the original one, and was eagerly awaiting the release of the new iPad in Singapore. I was going to buy it soon, but I read in Digital Life today, the IT pull out in the Singapore newspapers that the personal hotsp
-
Help with connection pool at system application server admin console 9.0
Hi, I am trying to create a pool of oracle connections in system application server admin console, but when I ping to the server, it shows me the error: invalid oracle URL: OracleDataSource.makeURL. I have the jar file of the driver referenced in the
-
Invoking the Java VM from a DLL
Hi, I'm trying to invoke the JVM from a Windows DLL using JNI -- my aim is to create the JVM when the DLL loads and destroy it when it unloads. Unfortunately, execution hangs when JNI_CreateJavaVM(...) is executed. The exact same JVM initialization c