Getting the number of the copy in smartform

Hi Everyone.
I need to know in the smarform the number of the copy that i'm working with. Can anyone help me please.
Thanks & Regards
  David

Hi david,
chk this.
DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
<b>p_output_options-TDCOPIES = 3. "number of copies.</b>
p_output_options-tddest = 'LP01'. "def
p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview
DATA : v_form_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_PETS_CIL_DOCUMENT_DETAILS'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
<b>control_parameters = p_control_parameters</b>
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
in_cashinlieu = int_cil-cashinlieu
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 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.
Reagards
Anver
if hlped plsmark points

Similar Messages

  • Indesign CS3: How to get the number of the current layer?

    Hallo!
    How to get the number of the current layer in a page?
    Thanks,
    Alois Blaimer

    InterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID());          <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br />                         <br />PMString layer=documentLayer->GetName();

  • Date - how to get the number of the week

    I have a Date - string - w/e can be convered thats not the problem
    but how do I get the number of the week cuz the database holds events per week so I need to know the number of the week.
    I tried going true the api but I failed to find the right fuction, aldoh I recall seeing it somewhere a while ago.
    anyways got a deathline so easy dukies, first come first serve.

    how's this then?int weekOfYear = 0;
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); //your String format
    Date date = null;
    String dateString = "2003/06/16";
    try {
      date = sdf.parse(dateString);
    } catch (ParseException pe) {
      //hande bad date format
    if (date != null) {
      GregorianCalendar calendar = new GregorianCalendar();
      calendar.setTime(date);
      weekOfYear = calendar.get(Calendar.WEEK_OF_YEAR);
    Warning: Be careful of your locale settings when using week of year, you may need to investigate setFirstDayOfWeek(int value) and setMinimalDaysInFirstWeek(int value) to ensure you get the results you expect.

  • HT3702 I have a ipod 4th generation and on my itunes it keeps asking me for my security cards # but i dont have it is there a way i can get that number without the card itself

    i have a ipod 4th generation; and on my itunes it keeps asking me for my itunes security card # but i dont have it. Is there a way i can get that number without the card itself?

    So I tryed to download it on the apple website but it keeps saying that there is an error.
    What does the error message say? (Precise text, please.)

  • My iphone was stolen and called police. Now the ditective needs to know my IMEI number. I need to know the number of the stolen one. How can I get the IMEI number?

    My iphone was stolen and called police. Now the ditective needs to know my IMEI number.I need to know the number of the stolen one. How can I get the IMEI number?                   

    Quickest place to look is in the label attached to the box the phone came in.
    Not around anymore? Maybe the carrier you used the phone with can facilitate the information. Also, when under contract, the IMEI is listed in the paperwork. Apple, alas, is quite unhelpful with that information.

  • I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account. why is this?

    I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account.
    How can I change the setup so on the email only the iPad rings and on the phone number only the phone rings?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • How to know the number of the week in iCal ?

    Hi !
    I'm very enjoying iCal. But, there is something very important for me that I can't find in iCal !
    I need to know the number of the week (in Month, Week or Day views).
    Is that a way to easily see it ?
    Regards,
    ant
    iMac G5   Mac OS X (10.4.2)  

    there's no option for a week view in iCal, but John Maisey wrote this applescript.
    paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
    if your weekview starts on an other day change this line:
    set daysText to "MonTueWedThuFriSatSun"
    to (example)
    set daysText to "SunMonTueWedThuFriSat"
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    set numberOfWeeks to 1000 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    --

  • Why is the word count different when I use word count from the tools menu to the number at the bottom of my mac word document

    Why is the word count different when I use word count from the tools menu to the number at the bottom of my mac word document

    This forum is for Apple's defunct office suite 'AppleWorks' - since the word count is not in the places you mention I assume you are talking about Microsoft Word? Though it's just possible someone in this forum might also use Word and know the answer, you would stand a higher chance of getting an answer in Microsoft's own forums. You could also try asking in the forum applicable to your operating system - Lion, Mavericks or whatever - on the reasonably chance of finding someone familiar with Word.

  • Searching for the number in the bigint value...

    HI!
    Could anybody help me with the searching for the number in the bigint value. ex:
    9567423742840 i need to get only the 2nd and 3rd number (56) from this value...
     ^^
    and the same thing with symbols in the strings..
    is there any special function in jsp available for that?
    thanks

    try looking into the String class. There should be a substring or similar function that lets u get only a part of another string. You can convert the int into a string by doing something like new Integer(yourIntValue).toString() and then using that string for your substring function. There may be other ways to do it too, but this is the one I remember off the top of my head.
    Hope it helps
    package com.DJ_Java;

  • Know the number of the row in a select

    Hi experts,
    I´m doing a select * ... such as:
    *      SELECT *
    *        FROM YPLM00 CLIENT SPECIFIED
    *        WHERE mandt = sy-mandt
    *        AND TIPOL = 'RS'
    *        AND PSPNR = yplm00_tree-pspnr
    *        AND TIPOP = yplm00_tree-tipop
    *        AND PROCE = yplm00_tree-proce
    *        AND ID_ED = yplm00_tree-id_ed
    *        AND TIPOE = yplm00_tree-tipoe
    *        AND ID_EN = yplm00_tree-id_en.
    Can i know the number of the row that is affected? I don´t want the total of rows... i want the number of each one...
    Thanks in advance,
    regards

    >
    Victor Capi wrote:
    > I have a table with
    >
    > Q   W   E   R
    > E   T    U    I
    > A   Q    E    T
    > A   W   R    F
    Hi Victor,
    I see what you mean.  The problem is still that there isn't actually a row number associated with each database row.  In your example, what is the primary key of the table?  If it is say A Q E for row 3 and A W R for row 4 then that is the only way you can identify them.
    It sounds like you have performance considerations so probably change the SELECT * to only SELECT the fields you need.  Also change it so that you are SELECTing into a table - so in your example you would get both rows 3 and 4.  Then if you want to process those rows, you will have to use their primary keys to identify them, say by LOOPing through the internal table you have just selected them into.
    Do you already have an internal table with values you wish to read from this table?  So say you have a table with 500 entries which all define the value in the first column of this table?  If so you could try chaning to using a FOR ALL ENTRIES in your select to get all rows for the table in one hit - you can then process them again in a LOOP.
    Hope this helps in some way.
    Gareth.

  • Call waiting says "multiple calls" rather than listing the number or the contact.  Does anybody know how to fix this?

    Call waiting says "multiple calls" rather than listing the number or the contact.  This error is not consistent, sometimes it says "multiple calls" and other times it lists the contact.  This is happening on a coworker's iPhone 4s.  Does anyone know how to get it to list the contact every time?
    Thank you,
    Dan

    It sounds as though it may not be ending calls correctly, I would try restarting the phone, and then resetting all settings.

  • I created a book at the Ibooks author. But there are pages where the number of the page does not appear. How I can solve this problem? I thank you very much for any tip.

    I created a book at the Ibooks author. But there are some pages which the number of page is not visible. What can I do to see the number of the page?

    Have you changed the template?
    Some pages may not have numbers in place as default.  If you have changed the page or the template page, you may have added a object which as pushed the number out of view, or an image may be in a layer on top of the text.
    If you select one object on the page...then go to Edit, select all, you should see the outlines of any content no matter that content may not be seen. Look at the bottom for a page width rectangle outline.. IF its there, you need to shuffle the content until you find that box, and use Arrange > bring to front.

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (a

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

  • The number of the rows in a tabular style

    hello to all
    i have a problem creating a column that gives me the # of the row in tabular with form builder
    can anybody give me help with that please?

    The rownum pseudo-column hold the number of the row but it doesn't work like you expect. It is assigned before sorting for example and it is not absolute. SQL conceptually deals with sets and sets have no inherent order. See http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    If you want to have an absolute number in a row you will need to maintain it yourself with PLSQL code.

Maybe you are looking for

  • Powerpoint 2008 printing presets

    Wasn't sure where else to post this issue. We are trying to set up our Powerpoint 2008 print presets where it prints Slides 6 to a page, and fits the slides to the page. When we save it as a print preset, the preset gets saved, then prints out fine,

  • ERROR: DW030 Can't install Flash Builder 4.7 CC in windows 8 64 bits

    Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR: DW030 ...    -------------------------------------- Summary --------------------------------------   - 0 fatal error(s), 1 error(s)    ----------- Payload: Adobe

  • Invalid Evaluation Parameter in line 0.  SPecified Depreciation Area

    Hi! Im using SBO 8.8 PL 11 Upon adding new fixed asset master data, im encountering the error "Invalid Evaluation Parameter in line 0.  SPecified Depreciation Area"... Also, the selection list of the existing masterdata is available.   However, after

  • Problem with image type

    Hi, Is there any difference between .GIF or .gif ? When I�m using the image component . Sometimes when I use mymage.GIF we do not see the figure on the browse after run, but we see with no problem on CREATOR. Regards Marlos Rodrigues

  • What different of all version of jdk(include j2sdk)

    hi everyone: I have developed an application. But there are some other applications worked with our application. And these applications are written by java, and compiled and run by different version of jdk(or j2sdk) correspondingly. And these applica