How to get current position in SAPscript?
Hi gurus,
I am now having to draw the BOXs which are not fix in the SAPscript ,( This depends on data line ) , In my case the form is QM_INSP_RESULT , Here I want that for each "Inspection control" I will draw a box , In an inspection lot there are many Inspection controls , So here to draw the BOX , The XPOS is fixed , but the YPOS will vary . In the standard we use &uline(100) & , Here I want to replace &uline(100) & with the command BOX ...., So how can i get the current position of the current line in SAPscript ? Is there any way to do this ?
Thanks ...
indexOf(int ch)
Returns the index within a string of the first occurrence of the specified character.
Similar Messages
-
How to get current view name on clicking device back button?
Hi,
iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
code samples will be helpful.
my app.controller.js looks like below
sap.ui.controller("com.opensap.App", {
onInit : function() {
document.addEventListener("deviceready", onDeviceReady, false);
onBeforeShow : function(evt) {
navButtonTap : function(evt) {
function onBackKeyDown(){
//alert("hai");
//sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
//sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
//sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
function onDeviceReady(){
document.addEventListener("backbutton", onBackKeyDown, false);I somehow managed to find the solution
function onBackKeyDown(){
var app = sap.ui.getCore().byId("LoginDetail").app;
app.back(); -
How to get current row data in table control
Hi , expert ,
I am professional in oracle , but now I am a new guy in SAP ABAP .
I have a question in UI
How to get current row data and click pushbutton in table control to open next screen ?
I want to get the current data and open next screen to carry out detail detail .
Thansk for all your suggestion .GET CURSOR LINE SY-CUROW .
READ TABLE internal_table index SY-CUROW. -
HELP!! How to get the position of active windows in the desktop
How to get the position of active windows in the desktop
You mean, active windows other than the program you're running, or windows the program puts there? And a real desktop (like where MyComputer is), or a desktop pane?
-
How to get current version of safari. without having safari browser?
how to get current version of safari. without having safari browser?
I don't understand the question. Safari is a browser.
Can you elaborate on what your are trying to do that initiated the question? People may be able to come up with some other option that gets you working the away you want.
When you respond, please post the version of the Mac OS and the version of Safari you currently have. Otherwise, people are guessing and the quailty of help you get plummets. -
How to get current rowindex of clicked object in cr2008 preview control
hi
i want to get selected raw data when user click on crystal report 2008 preview control.
i can achieve using following code for particular row no.
Dim repReport as new ReportDocument
repReport.Rows(RowIndex).Item(ColumnIndex)
how to get current rowindex ?
Thanks
Sanjiv SharmaOnly way I can think of is to use the rowset controller from the InProc RAS SDK. Here is a snippet of a sample code on how to:
//Load the report
if (clientDoc != null) {
//create metadata structure
RowsetMetaData rowSetMetaData = new RowsetMetaData(); rowSetMetaData.setDataFields
(clientDoc.getDataDefinition().getResultFields());
Fields fields = rowSetMetaData.getDataFields();
String colName,colTypeName;
int colType, len;
Field field;
HashMap colNames = new HashMap();
HashMap colTypes = new HashMap();
for (int i = 0; i < fields.size(); i++) {
field = (Field) fields.get(i);
colName =field.getDisplayName(FieldDisplayNameType.description, Locale
.ENGLISH);
colNames.put("COL"+i,colName);
colType = getColTypeFromVariant(field.getType().toVariantTypeString());
len=field.getLength();
//Placeholder
//add column metadata to data structure or XML
Object colValue;
int rowCount=0;
if (getMaxRows() != 0) {
RowsetCursor rowsetCursor = clientDoc.getRowsetController(). createCursor
(null, rowSetMetaData);
//Setting the batch size to make sure that you get back all the
//rows by setting the batch size.
clientDoc.getRowsetController().setRowsetBatchSize (rowsetCursor
.getRowset().getTotalRecordCount());
//Getting the Results back starting from the first row
RowsetCursor resultCursor = clientDoc.getRowsetController(). createCursor(null,
rowSetMetaData);
resultCursor.moveTo(0);
while (!resultCursor.isEOF()) {
for (int i = 0; i < fields.size(); i++) {
colName=(String)colNames.get("COL"+i);
colTypeName=(String)colTypes.get("COL"+i);
colValue=record.getValue(i);
//Placeholder
//add row data to data structure or XML
resultCursor.moveNext();
For more details, consult the Report Application Server .NET SDK Developer Guide
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
How to get Current row of ViewObject in the DoDML methode
Hi all
I have two ViewObject EmplyesView and DeptView
How to get Current row of ViewObject DeptView in the DoDML methode of EmplyesViewOK, we can play this game on and on...
I'll ask for a use case (http://en.wikipedia.org/wiki/Use_case) and you don't give any info we don't already know. After an other 10 posts we probably know what you real problem is and can give you the advice which you could have gotten in the fist place.
So please take some time and describe the problem as if you would ask your mother for help. Tell us how the data model is build and how the VO are related. Is there any input from an user involved? Which information from the other view do you need? How do you get to the doDML method? Is there a button in the ui involved?
Timo -
How to get current month and last month dynamically??
how to get current month and last month dynamically
like
month = getCurrentMonth();
lastmonth = getcurrentMonth() -1;
please help
thankshi :-)
/* depracated but can be still useful */
java.util.Date dtCurrent = new java.util.Date();
int month = dtCurrent.getMonth();
int lastmonth = dtCurrent.getMonth() - 1;
System.out.println("* " + month);
System.out.println("* " + lastmonth);
/* better to use this one */
Calendar cal = new GregorianCalendar();
int imonth = cal.get(Calendar.MONTH);
int ilastmonth = cal.get(Calendar.MONTH) - 1;
System.out.println("*** " + imonth);
System.out.println("*** " + ilastmonth);
regards, -
Hi,
does anybody know how to get IUser for the current user?
I know how to get current IUser from com.sap.security.api package:
IWDClientUser wdcu = WDClientUser.getCurrentUser();
IUser sapUser = wdcu.getSAPUser();
but I need to have IUser from com.sapportals.portal.security.usermanagement package.
Regards,
LadislavLadislav,
Try this:
Get the IUser uisng the API com.sap.security.api.IUser and store it in a variable, say <i>sapUser</i>.
Then,
// Convert the logged in user to old EP5 usermanagement API
com.sapportals.portal.security.usermanagement.IUser user = null;
try
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(sapUser);
catch (UserManagementException e)
e.printStackTrace();
Bala -
How to get current assigned participant id?
Hi mates,
This might be a basic questions, but useful for me :)
How to get current assigned participant id from screenflow? Or How to pass it as an argument from interactive activity?
Below is what I tried.
Participant.id or Instance.participant.id - returns login user id
ThanksHi,
Please correct me if I understood wrong.
You want to know whether an instance is assigned or not and if assigned then you want to fetch the assigned participant id.
If this is your requirement then please find the code below and make the necessary changes into it.
Write the following code in screen flow automatic activity but before that you need to pass the instanceid as argument to the screen flow.
In the process as well as screen flow layer make an instance variable instanceid as Int.
Then make an argument variable instanceidArg as Int in both the screenflow and process layer and map accordingly so that it will take the instanceid from process layer to the screen flow layer.
Assign instanceid = id.number; in process layer automatic activity but before the global interactive activity where you have maped the screen flow.
Write the following code in screen flow automatic activity.
logMessage("============= instanceid ==============" + instanceid); //instanceid is the id of the instance that you have passed from process layer.
ProcessService ps;
InstanceFilter instF = InstanceFilter();
ps.connectTo(url : Fuego.Server.directoryURL, user : "<userid>", password : "<password>"); //In studio the userid and password will be same
logMessage("Connected");
instF.create(processService : ps);
instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
//<ProessId Name> is the id of the process where you want to know the assighed participant id
instF.addAttributeTo(variable : VarDefinition.processid, comparator : Comparison.CONTAINS, value : "/" + "<ProessId>");
instF.addAttributeTo(variable : VarDefinition.INSTANCE_NUMBER, comparator : Comparison.IS, value : Int(instanceid));
Fuego.Papi.Instance[] instances = getInstancesByFilter(ps, filter : instF);
foreach (instance in instances) {
logMessage("Assigned ?: " + instance.participantId.empty);
logMessage("instance.participantId: " + instance.participantId);
ps.disconnectFrom();
Bibhu -
How to get current date for posting date
hi,
how to get current date for posting date ? any sample code ?
ThanksHi......
Use
Select getdate()
for current date.......
Regards,
Rahul -
Urgent : How to get current user id
Hello,
fnd_global.user_id returns -1
fnd_profile.get('user_id',x_user_id) return null
can anyone help how to get current logged in user to apps.
Regards,
Dinesh.Hi Dinesh,
You must also make sure you have initialised the app.
If you run this from sqlplus then it will return -1.
If however you run this from within a concurrent program then the user id will be returned.
Try using this from sqlplus fnd_global.apps_initialize
Eg.
begin
dbms_output.put_line(fnd_global.user_id);
fnd_global.apps_initialize(user_id => 3551,
resp_id => 1,
resp_appl_id => 1);
dbms_output.put_line(fnd_global.user_id);
end;
/ -
How to get current time and date??
How to get current time and date from my PC time and date to the java application??
i use java.util.* package but got error, that is:
- java.util.* and java.sql.* class are match
- abstract class cannot be instantiated
so what can i do, pls guide...thanks...There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
Don't import *. Import the specific classes you need.
Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother. -
How to get current file position information in JAVA ?
Hello,
I would like to know if someone knows how to get and set current file position information in JAVA ?
In C I use fgetpos and fsetpos.
ThanksInstead of using a standard java.io.File, use java.io.RandomAccessFile
This is a great class - you can get the file pointer (getFilePointer()), and set it (seek(long pos) )
that will do all you need I presume - works the same a file handle in C.
james -
How to get current displayed position of an item in listcontrol ?
Hi,
can anyone please help me to get current displayed position of an item in a listbox control in vc++ mfc. I am using CListCtrl class to manipulate.
Thanks,
saffiuddinOn 4/11/2015 3:45 AM, "David Lowndes [MVP]" wrote:
can anyone please help me to get current displayed position of an item in a listbox control in vc++ mfc. I am using CListCtrl class to manipulate.
Have you tried GetItemPosition?
... or GetItemRect (a bit more information).
Igor Tandetnik
Maybe you are looking for
-
just wondering is itunes match and icloud would let me share my itunes library with my family no matter where they are
-
Load Master Data to BPC from a file in BW server
Hi all, the problem is the next one. We have create some files in Bw with APD. We left those files in a carpet in the Bw server. We want to load those files in BPC. Anyone can explain how we can upload those files? Thanks for the help. Gorka.
-
Nokia 7710 - Problem connecting phone to PC
Hi Using PC Suite 6.8, USB Connection, Windows 2000 SP 4 As soon as PC Suite was installed, the first connection to PC worked ! But somehow connection got cut, and data transfer stopped abruptly. There after, the "PC Suite - Get Connected" doesnt act
-
Every time I try to install Elements I get the error indicated. Thenh the intall program backs out the install. Any help you can give would be appreciated. I am running WIN 8 with all updates applied. Thank you very much.
-
How can we change the structure after a Journal has been created??
Hi Experts, We have made an application and create a journal for it using the journal wizard. But later on on the development, we need to change or modify the structure of the application. so when we try to do it, the system prompt th