Building dynamic dialogs for Acrobat.

I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.
I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:
P12345Pg_036.pdf
P12345Ad_037.pdf
P12345Ar_038.pdf
But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):
Page          Pagetype
1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article
2             
O Page 
O Inner cover Front    
O  Outer cover Front
O Ad      
O   Article
3             
O Page 
O Inner cover Front    
O  Outer cover Front
O Ad      
O   Article
4             
O Page 
O Inner cover Front    
O  Outer cover Front
O Ad      
O   Article
N             
O Page 
O Inner cover Front    
O  Outer cover Front
O Ad      
O   Article
This means a dynamic dialog.
I have looked at the Acrobat API and determined that defining a dialog looks something like this:
var DialogABC = {
                                   initialize: function(dialog){},
                                   commit : function(dialog){},
                                   description:{}
app.execDialog(DialogABC)
What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  HOw can I make a dynamic description that allows for a variable number of rows?
Please let me know if you have any thoughts.  A good reference or example would serve just as well.
TIA!
John

Use this code to get all components of internal table.
Then build fieldcatlog.
DATA: tab_return type abap_compdescr_tab,
          components like line of tab_return.
perform get_int_table_fields using    <fs_it> changing  tab_return.
loop at tab_return into components.
  wa_fldcat-fieldname  = components-name.               "Field Name
  wa_fldcat-scrtext_m  = components-name.              "Column Heading
  wa_fldcat-inttype    = components-type_kind.     "Data Type
  wa_fldcat-intlen      = components-length.          "Data Lenght
  wa_fldcat-decimals = components-decimals.     "Data Decimal Places
append wa_fldcat to it_fldcat.
endloop.
form get_int_table_fields  using    t_data type any table
                            changing t_return type abap_compdescr_tab.
   data:
   oref_table type ref to cl_abap_tabledescr,
   oref_struc type ref to cl_abap_structdescr,
   oref_error type ref to cx_root,
   text type string.
*Get the description of data object type
   try.
       oref_table ?=
       cl_abap_tabledescr=>describe_by_data( t_data ).
     catch cx_root into oref_error.
       text = oref_error->get_text( ).
       write: / text.
       exit.
   endtry.
*Get the line type
   try.
       oref_struc ?= oref_table->get_table_line_type( ).
     catch cx_root into oref_error.
       text = oref_error->get_text( ).
       write: / text.
       exit.
   endtry.
   append lines of oref_struc->components to t_return.
endform.
Regards
Sreekanth

Similar Messages

  • Building a dynamic dialog in Acrobat with Javascript

    I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.
    I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:
    P12345Pg_036.pdf
    P12345Ad_037.pdf
    P12345Ar_038.pdf
    But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):
    Page          Pagetype
    1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article
    2             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    3             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    4             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    N             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    Beacuse each document varies in length, that means the dialog will need to be dynamic.
    I have looked at the Acrobat API and determined that defining a dialog looks something like this:
    var DialogABC = {
                                       initialize: function(dialog){},
                                       commit : function(dialog){},
                                       description:{}
    app.execDialog(DialogABC)
    What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  How can I make a dynamic description that allows for a variable number of rows?
    Please let me know if you have any thoughts.  A good reference or example would serve just as well.
    TIA!
    John

    There are two approaches to this:
    1. Treating the dialog object as a literal object
    2. Treating it as a string
    If you treat it as a literal object you can manipulate it like any other object. Each function can be defined separately, and the items in the various arrays can be added or removed as you please.
    If you treat it as a string then you can construce that string in a dynamic way, using loops or if-conditions, as you please, and then use the eval() command to convert it to an object when done.
    Both approaches are quite complex and require a lot of scripting experience to implement correctly.

  • Dynamic Dialog in a Dialog Participant Step for Workflow

    Hello All,
    I am trying to create a Dynamic Dialog in the dialog participant step for a workflow.
    so when a user has the Dialog participant step opened up, if they select from a drop down, it will make another textfield hide/show.
    In a component dialog I can do something like
    var comment = this.find('name', './jrc:content/customComment')[0] to find the field to be shown/hidden.
    however when I run this inside a Dialog Participant step, the result is undefined.
    Any Sugguestion on how to approach this ?
    I am using a listener on the dropdown widget/attribute

    Hello,
    The find() method will not help you because it searches the property based on configured value which you can not pass in your scenario. If you dont have any constraint with your hide/show field then best way it to configured it with a property "id" (String) and give it some unique value which has not been used by any component in this dialog and then use below method to find out the component.
    this.getComponent(id)
    when you pass the "id" value the method will return that component and then you can show/hide it.
    I have used this approach many times which is easy and fast to find out the component in any container.
    Let me know if you face any issue.
    Thanks,
    Pawan

  • How to dynamically call image  in PDF for Acrobat ver 8.1 onwards?

    Hi Experts,
    I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/
    We are now using Acrobat 8.1.1. Please refer following thread.
    http://kb2.adobe.com/cps/405/kb405270.html
    From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.
    However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.
    Click on the Layout tab and choose None for the Caption position.
    u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
    u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
    u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client
    write following code in wddoinit
    try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
    Please let me know what is the alternate method for Adope ver 8.1.1
    Regards,
    Gary

    Hi Gary,
    First you upload the image in SAP through se78.then write the below code in your adobe form interface.
    data :  v_object type  TDOBJECTGR value 'GRAPHICS',
            v_id  type TDIDGR  value 'BMAP',
            v_btype type TDBTYPE value 'BCOL',
            V_FIELD TYPE XSTRING.
    V_NAME = 'ZW_DEVMAN_LOGO'.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = v_object " 'GRAPHICS'
    p_name = v_name " Name of the logo as in se78
    p_id = v_id " 'BMAP'
    p_btype = v_btype " 'BCOL' ( whether the image is in color or black and white )
    RECEIVING
    p_bmp = v_field
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    g_logo = v_field.
    Declare g_logo as xstring in global data.
    In context of the form make one graphic element with field g_logo and mime type BMP.It will work.
    Regards,
    Simi A M
    Edited by: amsimi on Jan 26, 2011 5:30 AM

  • How to build dynamic time series for the time dimension

    I am planning to build dynamic time series using rule file instead of manually.Please let me know if there is any property need to assign to enable DTS property for TIME dimension.
    Edited by: 844104 on Mar 14, 2011 3:37 AM

    In the load rule in the dimension build settings you would need to go to the tab dimension definition, choose the time dimension and right click on it. Select Edit properties. If you have not done so, set the dimension to be the time dimension. Then go to the generations/levels tab and set the generation names you need. For example if you want YTD, you would set the generation name to Year, if you want QTD set it to Quarter. You would set the number to the generation number that coorisponds to the generation. The DBAG has the list of names for all of the DTS members.

  • How to build dynamic databases(record set) for mobile?

    Hi All ,
    i have an applocation that needs to personalize the data for users .
    i have the data available , but dont know how to personalize it fot users to download special version of my application.
    how to build dynamic databases(record set) for mobile?

    In the load rule in the dimension build settings you would need to go to the tab dimension definition, choose the time dimension and right click on it. Select Edit properties. If you have not done so, set the dimension to be the time dimension. Then go to the generations/levels tab and set the generation names you need. For example if you want YTD, you would set the generation name to Year, if you want QTD set it to Quarter. You would set the number to the generation number that coorisponds to the generation. The DBAG has the list of names for all of the DTS members.

  • New 3D Update for Acrobat 9 Pro Extended

    The following URL will take you to the download page for a new 3D Update for Acrobat 9 Pro Extended:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4073
    This free downloadable executable contains several updated dynamic link libraries (DLLs) that provide support for more recent versions of CAD file formats when using Adobe® Acrobat® 9 Pro Extended and Adobe 3D Reviewer. It also fixes a number of bugs related to CAD format import in Acrobat 9 Pro Extended and 3D Reviewer.
    New supported CAD format versions for this update:
    CAD format: Autodesk Inventor
    Supported version: Up to 12.x and 2009
    CAD format: Dassault CATIA V5
    Supported version: Up to R19
    CAD format: CoCreate OneSpace Designer
    Supported version: V3 to v2008
    CAD format:Siemens NX
    Supported version: Up to NX6
    CAD format: Siemens Parasolid
    Supported version: Up to 19

    No.
    Adobe stopped all support for 3D file conversion with the introduction of the Acrobat X Family back in 2010. There have been and will be no further updates to the 3D import functionality. The translation engine that used to be in Pro Extended is now sold as a commercial product by Tetra4D, but it's not compatible with Acrobat 9.

  • Can I create a custom-scripted dynamic stamp in Acrobat Standard or do I have to buy Acrobat Pro?

    I am researching options for the company I work for to take it's invoicing system paperless and I need to know if I can create a custom-scripted dynamic stamp in Acrobat Standard or is that possible only in Acrobat Pro?

    You can create a custom dynamic stamp in Std. and Pro. and you can use the dynamic stamp in Reader as well. Here is an infographic on Creating a Custom Dynamic Stamp in Acrobat XI.

  • Dynamic stamps with Acrobat Pro X

    Help needed!
    How to create own dynamic stamps with Acrobat Pro X, without any knowledge of programming.
    It was very easy with the program used before (Nuance); unfortunally it's not possible to export from Nuance to Acrobat.
    Thanks in advance
    vtosi

    It can't be done without using a script, and not a very simple one, either.
    There are detailed tutorials about how to do it, for example here:
    http://acrobatusers.com/tutorials
    If you're interested in someone to create the stamp (and all the required
    scripts) for you, feel free to contact me by PM or at [email protected] .

  • Dynamic links in Acrobat 9?

    Hi,
    I would like to create PDF-files with dynamic links for messages and pictures.
    These items can be stored on a server and would be changed by every opening of the files.
    I work with InDesign CS4 and Acrobat 9 - is any solution available?
    Thanks for any advice - Wolvo

    You could use Javascript within the PDF to generate the destination URL for a button, but the simplest solution would be to create a single URL on the server that delivers dynamic content, and link to it normally.
    Doing it inside the PDF would be a nightmare if you needed to ask the server for a list of files to choose from before forming the link. Doing that on the server is trivial.

  • How to build dynamic select query

    Using the ZCO_SETTLE_CHK-REC_FIELD and DISTRIBUTION_RULE-KONTY write a dynamic select single query <table>-<field name> e.g. <COAS>- <AUART> on the <table> e.g. <COAS>. If the DISTRIBUTION_RULE-KONTY is u2018ORu2019, then use DISTRIBUTION_RULE-AUFNR value in the where clause of the query to fetch the ZCO_SETTLE_CHK-REC_FIELD value maintained in the <table>-<field name>. If DISTRIBUTION_RULE-KONTY = u2018KSu2019 or u2018PRu2019 use DISTRIBUTION_RULE-KOSTL or DISTRIBUTION_RULE- PS_PSP_PNR respectively in the where clause to fetch the values.
    For above how we can build dynamic query

    Hi,
    Refer the below code which helps to design a dynamic where condition.
    IF NOT p1 IS INITIAL.
    CLEAR : lv_p1_condition.
    CONCATENATE 'F1' ' = ' '''' p1 '''' INTO
    lv_p1_condition.
    ENDIF.
    IF NOT p2 IS INITIAL.
    CLEAR : lv_p2_condition.
    CONCATENATE 'F2' ' = ' '''' p2 '''' INTO
    lv_p2_condition.
    ENDIF.
    IF NOT p3 IS INITIAL.
    CLEAR : lv_p3_condition.
    CONCATENATE 'F3' ' = ' '''' p3 '''' INTO
    lv_p3_condition.
    ENDIF.
    IF NOT lv_p1_condition IS INITIAL.
    CONCATENATE lv_p1_condition lv_condition
    INTO lv_condition SEPARATED BY space.
    ENDIF.
    IF NOT lv_p2_condition IS INITIAL.
    IF lv_condition IS INITIAL.
    CONCATENATE lv_p2_condition lv_condition
    INTO lv_condition SEPARATED BY space.
    ELSE.
    CONCATENATE lv_condition 'AND' lv_p2_condition
    INTO lv_condition SEPARATED BY space.
    ENDIF.
    ENDIF.
    IF NOT lv_p3_condition IS INITIAL.
    IF lv_condition IS INITIAL.
    CONCATENATE lv_p3_condition lv_condition
    INTO lv_condition SEPARATED BY space.
    ELSE.
    CONCATENATE lv_condition 'AND' lv_p3_condition
    INTO lv_condition SEPARATED BY space.
    ENDIF.
    ENDIF.
    SELECT * FROM link INTO wa
    WHERE lv_condition .

  • Dynamic Playlist for streaming video

    This is my first attempt at building a dynamic playlist for
    streaming flash video and I'm following the tutorial at
    "macromedia.com/devnet/flash/articles/video_player.html". I've
    changed the paths to my FMS and loaded the video files to the
    applications directory of the FMS (flash_applications/videosource).
    The thumbnails load and the player skin loads but the videos do not
    load when I click on the thumbnails.
    I've read the earlier post about this same issue. I followed
    the advice from that post and reloaded the 'main.asc' file from my
    Flash 8 program files but the video still does not play.
    Here is a link to the site so you can see the problem:
    http://media.us.elsevierhealth.com/videosource/VideoSource1.swf
    My FMS is 'media.us.elsevierhealth.com'
    I believe my code is correct and I believe the paths I've
    created are correct. If someone could review my code and check the
    path info I would appreciate it. Here is the code from
    'VideoSource1.as'
    import mx.video.*;
    //Set up the list box, call function VideoThumb to create the
    actual thumbnails
    list.rowHeight = 70;
    list.cellRenderer = "VideoThumb";
    list.selectable = true;
    //create new empty listener object
    listListener = {};
    nc = new NetConnection(); //create a connection
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    //connect to FCS (nav.attributes.url)
    ns = new NetStream(nc); //create a stream
    ns.connect(); //connect the stream
    nc.connect("rtmp://media.us.elsevierhealth.com/videosource");
    var stream_ns:NetStream = new NetStream(nc);
    stream_ns.play("video2.flv");
    // Create function to trace all the status info.
    function traceStatus(info) {
    Message.text+="Level: " + info.level + " Code: " +
    info.code+"\n";
    } // Assign this function to onStatus handlers when you
    create objects.
    //Function to handle what happens when an item in the list is
    selected
    listListener.change = function( evtobj ) {
    var nav = list.dataProvider[list.selectedIndex];
    var reset = true;
    for ( var i = 0; i < nav.childNodes.length; i++ ) {
    var stream = nav.childNodes
    if ( stream.nodeName == "stream" ) {
    attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:320,
    height:240, x:90, y:100});
    //center the FLVPlayback component when FLV is ready to play
    var listenerObject
    bject = new Object();
    listenerObject.resize = function(eventObject
    bject):Void {
    //center video in playback area
    newx = (460 - my_FLVPlybk.preferredWidth)/2;
    newy = (470 - my_FLVPlybk.preferredHeight)/2;
    my_FLVPlybk._x = newx;
    my_FLVPlybk._y = newy;
    my_FLVPlybk.addEventListener("resize", listenerObject);
    listenerObject.ready = function(eventObject
    bject):Void {
    my_FLVPlybk.setSize(250, 350);
    my_FLVPlybk.skin = "ClearExternalAll.swf";
    my_FLVPlybk.clear();
    my_FLVPlybk.contentPath =
    "rtmp://media.us.elsevierhealth.com/videosource/stream/_definst_/"
    + stream.attributes.name+".flv";
    my_FLVPlybk.autoSize = true;
    trace(my_FLVPlybk.contentPath);
    reset = false;
    //Add an event listener on the list, when it triggers, run
    the listListener function to repopulate the list
    list.addEventListener("change", listListener);
    //Function that loads the XML file, parses it, and builds the
    list of available video clips
    var xmllist = new XML(); //setup a variable to hold the XML
    xmllist.ignoreWhite = true;
    xmllist.load( "playlist-demo-1.xml" ); //load the XML file
    //The following gets called when the XML has been loaded
    xmllist.onLoad = function( status ) {
    if ( !status )
    trace( status );
    var entries = this.childNodes[0];
    var playlists = {};
    var nav = [];
    for ( var i = 0; i < entries.childNodes.length; i++ ) {
    var entry = entries.childNodes;
    if ( entry.nodeName == "listitem" )
    //builds array of video clip names
    playlists[entry.attributes.name] = entry;
    else if ( entry.nodeName == "menu" ) {
    //builds array of available videos
    for ( var j = 0; j < entry.childNodes.length; j++ )
    nav[j] = playlists[entry.childNodes[j].attributes.name];
    } //end else if
    } //end if
    //sends the array of videos to the listbox UI
    list.dataProvider = nav;
    } //end xmllist.onload
    Any advice or troubleshooting will be appreciated. Thanks in
    advance.

    I just used the server on Windows (as opposed to linux) and
    it worked great. So the issue, at least for me and my issue (could
    see the thumbnails, couldn't play the video) was windows vs. Linux.
    I guess the linux version doesn't work with this exact script. Now
    to put together something of my own to test to see if the linux
    version works right.

  • Deletion of Flash Builder 4.5 when installing Flash Builder 4.5 for PHP

    There is a very serious error with the Flash Builder 4.5 for PHP installer (from http://static.zend.com/topics/Flash-Builder-for-PHP-4.5.0-Release-Notes.txt ):
    If Flash Builder 4.5 (not PHP) is already installed on the machine, and the
      product (Flash Builder for PHP 4.5) is then installed in a different location,
      the user gets the "FB is installed" dialog.
      After clicking OK, the installation rolls back and removes both Flash Builder
      and Flash Builder for PHP.
    My questions:
    Can Flash Builder 4.5 for PHP be installed in the same location without deleting Flash Builder 4.5? If so, please define "location."
    Is there a workaround for installing both flavors of Flash Builder 4.5 and avoiding the deletion issue described above?
    Can a single do-it-all version of Flash Builder 4.5 be installed that combines the SDKs and features of both flavors of the Flash Builder 4.5 product?

    Hi Mike,
    Could you please send the following log files so we identify the exact problem and hopefully help you quickly:
    Windows:
    1.       <path_to_adobe_fbphp>/_Flash Builder 4.5 for PHP.log
    2.       Logs located under C:\Program Files\Common Files\Adobe\Installer\
    Max OSX:
    1.       <path_to_adobe_fbphp>/_Flash Builder 4.5 for PHP.log
    2.       Logs located under /Library/Logs/Adobe/Installers/
    Thanks for sharing this,
    Roy

  • How to use dynamic query for this ??

    hi , i am new to ABAP. i got a requirement to write  dynamic query for the following code.
    kindly address. two set of queries are same.but condition is different.
    .IF p_psd EQ ' '.
    *C--End of change DF 1232137- (Transport # :CIDK980530 )
    *C--FETCH THE Deliverd Quantiity and Material Number
        SELECT aufnr "ORDER number
               wemng "Quantity of goods received for the order item
               matnr "MATERIAL NUMBER
               pwerk "PLANT
               dauat "Order Type
               FROM afpo
               INTO TABLE t_afpo
               WHERE aufnr IN s_order
               AND   wemng IN s_dqt
               AND   matnr IN s_matnr
               AND   pwerk IN s_plant
               AND   dauat = c_ro.
        IF sy-subrc = 0.
          SORT t_afpo BY aufnr matnr pwerk.
    *C--FETCH THE OBJECT NUMBER
          SELECT aufnr "ORDER number
                 objnr "Object number
                 FROM aufk
                 INTO TABLE t_aufk
                 FOR ALL ENTRIES IN t_afpo
                 WHERE aufnr = t_afpo-aufnr.
          IF sy-subrc = 0.
            SORT t_aufk BY aufnr objnr.
    *C--FETCH THE Target Quantiity
            SELECT aufnr "ORDER number
                   gamng "Total order quantity target quantity
                   FROM afko
                   INTO TABLE t_afko
                   FOR ALL ENTRIES IN t_afpo
                   WHERE aufnr = t_afpo-aufnr
                   AND   gamng IN s_tqt.
            IF sy-subrc = 0.
              SORT t_afko BY aufnr .
            ENDIF.
          ENDIF.
        ELSE.
          MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
          LEAVE LIST-PROCESSING.
        ENDIF.
    *C--Begin of change DF 1232137- (Transport # :CIDK980530 )
      ENDIF.
      IF p_psd EQ c_x.
        SELECT aufnr "ORDER number
               wemng "Quantity of goods received for the order item
               matnr "MATERIAL NUMBER
               pwerk "PLANT
               dauat "Order Type
               FROM afpo
               INTO TABLE t_afpo
               WHERE aufnr IN s_order
               AND   wemng > 0
               AND   matnr IN s_matnr
               AND   pwerk IN s_plant
               AND   dauat = c_ro.
    if sy-subrc = 0.
    *C--FETCH THE OBJECT NUMBER
        IF  NOT t_afpo[] IS INITIAL.
          SORT t_afpo BY aufnr matnr pwerk.
          SELECT aufnr "ORDER number
                 objnr "Object number
                 FROM aufk
                 INTO TABLE t_aufk
                 FOR ALL ENTRIES IN t_afpo
                 WHERE aufnr = t_afpo-aufnr.
          IF sy-subrc = 0.
            SORT t_afko BY aufnr gamng.
          ELSE.
            MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
            LEAVE LIST-PROCESSING.
          ENDIF.
        ENDIF.
        IF NOT t_afpo[] IS INITIAL.
    *C--FETCH THE Target Quantiity
          SELECT aufnr "ORDER number
                 gamng "Total order quantity target quantity
                 FROM afko
                 INTO TABLE t_afko
                 FOR ALL ENTRIES IN t_afpo
                 WHERE aufnr = t_afpo-aufnr
                 AND   gamng <> t_afpo-wemng .
          IF sy-subrc = 0.
            SORT t_afko BY aufnr gamng.
          ELSE.
            MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
            LEAVE LIST-PROCESSING.
          ENDIF.
        ENDIF.
      ELSE.
        MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
        LEAVE LIST-PROCESSING.
      ENDIF.
    Edited by: Thomas Zloch on Jan 5, 2011 1:30 PM please use code tags

    Hi friend,
    Try using MACRO and dynamic WHERE condition.
    Group simialr Select statements under a Macro.
    Build a dynamic where by checking conditions
    Call macro passing dynamic where condition.
    TABLES afpo.
    DATA: str TYPE string.
    *Macro definition
    DEFINE operation.
      select single *
           from afpo into afpo
           where (&1).    " Dynamic condition
    END-OF-DEFINITION.
    *Build dynamic WHERE by checking some conditions
    *If conditon 
    CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0001''' INTO str SEPARATED BY space.
    *Else
    CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0002''' INTO str SEPARATED BY space.
    *Endif.
    *Call Macro passing dynamic WHERE condition
    operation str.

  • Making a dynamic stamp in Acrobat 10

    I tried to follow the instructions for making a dynamic stamp in Acrobat 9 for use in Acrobat 10, but my stamp is static, not dynamic. The date and time stayed the same as when I made it. What is the trick to make this happen. It's very frustrating that it is so hard to make a dynamic stamp. Thank for any assistance anyone can provide.

    I've not done that, but here are some links which may help you:
    http://forum.planetpdf.com/wb/default.asp?action=9&read=64312&fid=134

Maybe you are looking for