External subroutine in script

Hi,
Could any one tell me is that possible to use external subroutine.  Actually my script is the output of ML83. Driver program which passing the info. to script is Std one.  Is there any filed relavent to this driver program is updating when 'Service entry is revoked'.  Plz help me out... this is very urgent.
Thanks
Sai.

Hi,
'Service entry is revoked' means blocked or released..
Sorry..I am not an expert on Service entry..But I am trying to search for the fields which you are looking for..
Thanks,
Naren

Similar Messages

  • Passing Currency field to external subroutine from script

    Hi,
                I am passing one currency field to external subroutine from script. In subroutine we can get that currency in character format. I want to convert that into currency format. how can i do that?
    thnk u

    easy conversion:
    number = character_parameter

  • Script external subroutine for multiple fileds display

    Hi,
    can anybody tell
    how to write external subroutine in script.
    i want to display multiple fields data in script by using external subroutine.
    Regards,
    Kumar.

    HI,
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM

  • SAPscript external subroutine - select not pulling data

    Hi all,
    I am calling an external subroutine in my SAPscript. In this subroutine, I am using a simple select statement:
    * get sales order number
      SELECT vbelv posnv
        FROM vbfa
        INTO CORRESPONDING FIELDS OF TABLE it_so
         WHERE vbeln = gv_deldoc
           AND posnn = gv_posnr.
    The problem is no data is being pulled into it_so. I have confirmed in VBFA (through SE16N) that data exists in the system so this isn't the problem. Are there restrictions with using selects in SAPscript?
    Thanks,
    Edited by: pistols123 on Sep 8, 2011 9:11 PM

    Hi,
    Please refer below code.
    In SAP Script ,SE71: call the subroutine pool program with the below sysntax.
    /: PERFORM GET_DATA IN PROGRAM ZXXXX
    /: USING &XXXX-MATNR&
    /: CHANGING &V_YYYY&
    /: CHANGING &V_YYY2&
    /: ENDPERFORM
    Using Parameter will be the input in the subroutine pool to fetch the data.
    Changing Paramter will be the your output to pass the data into SAP Form.
    now goto SE38,and create a subroutine pool program with the name ZXXXX,follow the below code.
    FORM get_data TABLES tbl_in  STRUCTURE itcsy
                           tbl_out STRUCTURE itcsy.
    READ TABLE tbl_in INDEX 1.
      IF sy-subrc EQ 0.
        XXXX-Matnr = tbl_in-value.
    "Pass it through the conversion exit CONVERSION_EXIT_ALPHA_INPUT before SELECT."
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input         = gv_deldoc
    IMPORTING
       OUTPUT        = gv_deldoc
    SELECT vbelv posnv
        FROM vbfa
        INTO (l_vbelv,l_posnv)
         WHERE vbeln = gv_deldoc
           AND posnn = gv_posnr.
    READ TABLE tbl_out INDEX 1.
      IF sy-subrc = 0.
        MOVE l_vbelv TO tbl_out-value.
        MODIFY tbl_out INDEX 1.
      ENDIF.
      READ TABLE tbl_out INDEX 2.
      IF sy-subrc = 0.
        MOVE l_posnv TO tbl_out-value.
        MODIFY tbl_out INDEX 2.
      ENDIF.
    Moderator message - Welcome to SCN. But please do not ask for "rewards"
    Regards,
    VSNM
    Endform.
    Edited by: Rob Burbank on Sep 8, 2011 4:18 PM

  • External subroutine in sapscript

    hi all
    can anyone explain me how to handle an external subroutine in a script with a simple example.
    rg
    sandeep

    Hi Sandeep,
    Try this :
    Use PERFORM from SAPSCRIPT
    /: PERFORM BIN_LOCATION IN PROGRAM Z_SAPSCRIPT_PERFORMS
    /: USING &RESBD-MATNR&
    /: USING &CAUFVD-IWERK&
    /: USING &RESBD-LGORT&
    /: CHANGING &MARD-LGPBE&
    /: ENDPERFORM
    REPORT z_sapscript_performs.
    SUBROUTINES FOR CALLING FROM SAPSCRIPTS
    FORM bin_location TABLES in_tab STRUCTURE itcsy
    out_tab STRUCTURE itcsy.
    get default bin location from MARD for this material/plant/storage *
    location
    DATA: l_matnr TYPE matnr, "material
    l_werks TYPE werks, "plant
    l_lgort TYPE lgort, "storage location
    l_lgpbe TYPE lgpbe. "bin location
    Get first parameter in input table.
    READ TABLE in_tab INDEX 1.
    WRITE in_tab-value TO l_matnr .
    Get second parameter in input table
    READ TABLE in_tab INDEX 2.
    MOVE in_tab-value TO l_werks.
    Get third parameter in input table
    READ TABLE in_tab INDEX 3.
    MOVE in_tab-value TO l_lgort.
    read bin location
    SELECT SINGLE lgpbe INTO l_lgpbe FROM mard
    WHERE matnr = l_matnr
    AND werks = l_werks
    AND lgort = l_lgort.
    IF l_LGPBE IS INITIAL.
    l_LGPBE = 'NONE'.
    ENDIF.
    read & update only parameter in output table
    READ TABLE out_tab INDEX 1.
    out_tab-value = l_lgpbe.
    MODIFY out_tab INDEX 1.
    ENDFORM.
    Regards,
    Lanka

  • Abput subroutines in scripts

    how to call subroutines in scripts

    Hi
    When you don't have option to change the driver program connected to the script, and when you wants to bring some external data from other tables and to do external calculations we use these subroutines in scripts
    See the sample programs for calling subroutines
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    REPORT ZMPO1 .
    form get_freight tables in_par structure itcsy out_par structure itcsy.
    tables: ekko,konv,t685t.
    data: begin of itab occurs 0,
             ebeln like ekko-ebeln,
             knumv like ekko-knumv,
           end of itab.
    data: begin of itab1 occurs 0,
             knumv like konv-knumv,
             kposn like konv-kposn,
             kschl like konv-kschl,
             kbetr like konv-kbetr,
             waers like konv-waers,
             kwert like konv-kwert,
           end of itab1.
    data: begin of iout occurs 0,
             kschl like konv-kschl,
             vtext like t685t-vtext,
             kbetr like konv-kbetr,
             kwert like konv-kwert,
           end of iout.
    data v_po like ekko-ebeln.
    read table in_par with key 'EKKO-EBELN'.
    if sy-subrc = 0.
       v_po = in_par-value.
       select
         ebeln
         knumv
      from ekko
      into table itab
      where ebeln = v_po.
      if sy-subrc = 0.
        loop at itab.
          select
            knumv
            kposn
            kschl
            kbetr
            waers
            kwert
          into table itab1
          from konv
          where knumv = itab-knumv and
                kappl = 'M'.
        endloop.
        loop at itab1.
          if itab1-kposn <> 0.
            select single * from t685t
                              where kschl = itab1-kschl
                                and kappl = 'M'
                                and spras = 'EN'.
            iout-vtext = t685t-vtext.
            iout-kschl = itab1-kschl.
            iout-kbetr = itab1-kbetr.
            iout-kwert = itab1-kwert.
            append iout.
            clear iout.
          endif.
        endloop.
        sort itab1 by kposn.
        loop at iout.
          sort iout by kschl.
          if ( iout-kschl eq 'GSDC' OR
               iout-kschl eq 'GSFR' OR
               iout-kschl eq 'GSIR' ).
            at end of kschl.
              read table iout index sy-tabix.
              sum.
             write:/ iout-kschl,iout-vtext,iout-kwert.
          out_par-name = 'A1'.
          out_par-value = iout-vtext.
          append out_par.
          out_par-name = 'A2'.
          out_par-value = iout-kwert.
          append out_par.
              endat.
            endif.
          endloop.
        endif.
      endif.
    endform.
    IN THE FORM I AM WRITING THIS CODE.
    /:DEFINE &A1& = ' '
    /:DEFINE &A2& = ' '
    /:PERFORM GET_FREIGHT IN PROGRAM ZMFORM_PO1
    /:USING &EKKO-EBELN&
    /:CHANGING &A1&
    /:CHANGING &A2&
    /:ENDPERFORM
    &A1&
    &A2&
    This Code is to be written in the PO form under ADDRESS window.
    /:DEFINE &A1& = ' '
    /:DEFINE &A2& = ' '
    /:DEFINE &A3& = ' '
    /:DEFINE &A4& = ' '
    /:DEFINE &A5& = ' '
    /:DEFINE &A6& = ' '
    /:PERFORM GET_VENDOR IN PROGRAM ZMFORM_PO
    /:USING &EKKO-EBELN&
    /:CHANGING &A1&
    /:CHANGING &A2&
    /:CHANGING &A3&
    /:CHANGING &A4&
    /:CHANGING &A5&
    /:CHANGING &A6&
    /:ENDPERFORM
    &A1&
    &A2&
    &A3&
    &A4&
    &A5&
    &A6&
    Reward points for useful Answers
    Regards
    Anji

  • Installer LV7.1 - LabVIEW load error code 21: An external subroutine required for execution could not be found.

    Bonjour,
    Je cherche à créer un installer portatif utilisant les drivers NI-DAQmx 8.7.1 et NI-CAN 2.6.0.
    Je dispose d'un code LV 7.1 et j'ai installé l'application builder 7.1.
    Mais une fois l'application installé sur un PC vierge de Labview, j'obtiens le message suivant:
    load error code 21: An external subroutine required for execution could not be found.
    Ce message est répété plusieurs fois (pour différents VIs) puis le programme ne se lance pas.
    J'ai bien veillé à installer les drivers NI-CAN et NI-DAQmx correspondant au préalable sur la machine cible.
    En chercant sur le forum, plusieurs pistes m'ont été proposé:
    La version NI-DAQ
    L'intégration du Run time Engine
    Un problème de DLL
    J'ai vérifié ces 3 points mais cela n'a pas règlé mon problème.
    Résolu !
    Accéder à la solution.

    Bonjour,
    Merci de ta réponse.
    En fait, j'ai bien inclu le runtime engine de Labview qui était effectivement la source de l'erreur.
    L'installation de NI-DAQmx v 8.7.1 provoque la mise à jour de la version du runtime engine (passage de 7.1 à 7.1.1).
    J'ai donc désinstallé Le runtime engine 7.1.1 (ce qui a provoqué la désinstallation de labview et NI-DAQ).
    Puis je suis passé par une version plus ancienne de NI-DAQ (7.2) que j'ai adapté (inclusions de DLL et de VIs).
    Les messages d'erreurs ont alors tout simplement disparus!

  • Select-options as a external subroutine

    hi all,
    plz solve my problem.
    this is my first program.
    tables vbak.
    select-options x for vbak-vbeln.
    types : beginf of ty,
    a tupe vbak-vbeln,
    b type vbak-ernam,
    end of ty.
    data : itab type table of ty,
             wa type ty.
    perform sub(znava) using x.
    this is my secomd program
    report znava.
    form sub using x.
    select vbeln ernam from vbak into table itab where vbeln in x.
    loop at itab into wa.
    write :/ wa-a,wa-b.
    endloop.
    endform.
    in the above two programs are separate,and i am using external subroutine but it will show some error how can i rectify.
    anyone plz guide me.
    thanks and regards,
    navneeth.
    Edited by: Navaneetha KRISHNAN on Feb 19, 2008 5:50 PM

    First of all SELECT-OPTIONS are TABLE type. 
    You just can't use USING  keyword, you've to use TABLES keyword.
    second point is,, in your second program are you defining ITAB and WA??? otherwise second program is not going to identify ITAB & WA... so I suggest you try like this..
    "program 1.
    TABLES vbak.
    SELECT-OPTIONS x FOR vbak-vbeln.
    PERFORM sub(znava) TABLES x .
    "program 2
      TYPES : BEGIN OF ty,
      a TYPE vbak-vbeln,
      b TYPE vbak-ernam,
      END OF ty.
      DATA : itab TYPE TABLE OF ty,
      wa TYPE ty.
    FORM sub TABLES x.
      SELECT vbeln ernam FROM vbak INTO TABLE itab WHERE vbeln IN x.
      LOOP AT itab INTO wa.
        WRITE :/ wa-a,wa-b.
      ENDLOOP.
    ENDFORM.                    "sub

  • Using HR_INFOTYPE_OPERATION in external subroutine for Dynamic Actions

    Hi,
    I am calling an external subroutine in the Dynamic Actions of an Infotype. In this external subroutine, I am using HR_INFOTYPE_OPERATION to modify OTHER records of the same Infotype number.
    However, when I tried to trigger the Dynamic Actions in PA30, the other infotypes get modified as intended. But when I refreshed the PA30 screen, the changes were reversed back as if the HR_INFOTYPE_OPERATION were not carried out at all. I have COMMIT WORK after the HR_INFOTYPE_OPERATION, refreshed the buffer. But it doesn't seem to work.
    My question is: Can i use HR_INFOTYPE_OPERATION in an external subroutine which is called during dynamic actions? As I have some complicated logic, I do not want to embed the coding in the Dynamic Actions. Is there a way for HR_INFOTYPE_OPERATION to work in the external subroutine with the changes being committed to the database?
    Thank you.

    Hi,
    I remember the same problem being faced by some of the forum members.
    Suresh Datti had replied that "Call the subroutine in a nother program using a SUBMIT statement. This will create two sessions and will update the DB". This was working fine for the users.
    Hope you can try this.
    Just call a program using SUBMIT statement and code your form routine inside that.
    Hope this helps you.
    Regards,
    Subbu.

  • Using external subroutine

    my subroutine is written in one program.
    I m using it in another program.
    i checked with the breakpoint...
    The control goes to the subroutine fetches the data in the structure but when the control returns to the main program the structure is empty.
    Now wat should i do either write the routine in the same program or have to use import & export memory which is best based on performance.

    hi
    let us also the location of the subroutine..i mean in differnt client no or in the same. If the subroutine is in the same client no..then you can use the Perform statement in the sapscript to call the extra functionality from the print program or in any location but with in the same system(client).
    In case of external subroutine, i think you need to use the client-specified statement in the print program while selecting the data.
    eg.
    select f1
              f2
              f3
              from zzkna1
              into i_tab
              cleint-specified where mandt = <client no from where you are fetching the data>
    this may work.
    regards,
    shamim.

  • Subroutine in script. REWARDED

    Hi All,
    Please give me a sample and easy code
    for calling subroutine in script
    subroutine defination zprogram which is having a select statement.
    every helpful answere is rewarded surely.

    hi priyanka,
    sample code for routines in script.
      /: PERFORM FORM_TEST IN PROGRAM ZTEST
    /: USING &VAR1&
    /: USING &VAR2&
    /: USING &VAR3&
    /: USING &VARN&
    /: CHANGING &VAR_OUT1&
    /: CHANGING &VAR_OUTN&
    in the program ZTEST...
    FORM FORM_TEST tables in_tab structure itcsy
    out_tab structure itcsy.
    Get value of VARN
    data: varn like ....
    read table in_tab with key name = 'VARN'.
    if sy-subrc = 0.
    move in_tab-value to varn.
    endif.
    Update the value of VAR_OUTN
    read table out_tab with key name = 'VAR_OUTN'.
    if sy-subrc = 0.
    move <value> to out_tab-value.
    modify out_tab index sy-tabix.
    endif.
    ENDFORM.
    check this link too...
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm
    Regards...
    Arun.
    Reward points if useful.

  • Build Applicatio​n problem // external subroutine

    Hey,
    i was build an stand alone application (.exe) and i have a problem with external subroutine to subVi.
    I was trying to add the missing .llb as support file in Source Files but still doesnt work.
    It works on my computer, on another computer doesnt work (please look attached file)
    I have LV 7.1.
    I read on forum about this problem and i didnt find any solution for me.
    Thanks for help.
    Attachments:
    missingSubVi.JPG ‏12 KB

    crossrulz wrote:
    Mark, a lot of things changed going to LabVIEW 8.  LabVIEW 7 didn't have projects or the fancy build specs.  I don't have LabVIEW 7 anywhere, so I can't play around in the menus of the very old build dialog.
    I know a lot has changed. I don't recall myself exactly how LV 7 build specs looked. It should have some type of similar option though.
    If it doesn't the OP may need to be very specific with his paths for calling the dynamic VIs and makes sure he distributes them and place them into the correct directory where his application will access them.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Visibility of global parameters while working with external subroutines

    Hi all,
       I am trying to use external subroutines in my current report. But I am not able to access the global variable values of my calling program  through  the called external subroutines.Please let me know whether the accessibility of global parameters will be possible through the external subroutine calls.

    Hi Jaya,
    It is NOT Possible.
    Using the external Subroutine,
    1) We can only import some required result only (using the CHANGING option).
    2) Or, we can do some other execution on the DB based on the input which we gave as Export
        Parameters.
    Rgds,
    Ramani N

  • "an external subroutine required for execution can not be found."

    My application Intermittantly displays "an external subroutine required for execution not be found." The exe file is located on a local server. The missing file is a call to hostname.dll . If I run the exe file on the local machine the error message is not diplayed.
    Why?

    It sounds like an intermittent problem with the connection to your local server. It also sounds like there's a lot of traffic on the network every now and then, which is most often true on most networks.
    Are you calling this external subroutine as fast as you can? If you are, try slowing it down. Adding some delays might take the problem away.
    The second suggestion is to not be dependent on network files. If you do, add some sort of error checking capabilities to your program so that it will know to try again if the file cannot be loaded fast enough.
    Must the .dll be located on the server? If you're planning on running your application fast, you definitely want to keep everything on the local machine.
    Just my suggestions. Hope that helps.
    Shan Pin Koh

  • Subroutines in script

    hi friends...
    i need to know where we use  subroutines in scripts..... further is it really necessary to use the same ...since using subroutines reduces performance!!!!!

    Hi..,
    <b>
    In some case we need to do some mathematical operations in scripts !! Those things we cant do in Script Editor !! thats y the subroutines are there in scripts !!</b>
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    <b>Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.</b>
    regards,
    sai ramesh

Maybe you are looking for

  • Reg., Quality Inspection at the time of Goods Receipt against the P.O.

    Hi Pls provide the procedure for the "Quality Inspection at the time of Goods Receipt against the P.O." Thanks in advance. Regards Ravi

  • How do I get Rhyme to update if it missed an update last year?

    Just realized today that my phone has never updated its software. It says it failed to upload one in July of 2012. I'm thinking maybe it wont upload new version because the one before that never loaded? I think this is causing lots of problems on my

  • Mav Contacts does not import csv file

    Trying to import my Outlook exchange contacts to Mavericks Contacts.  Exported from outlook to excel. Saved excel file to csv format.  Tried to import csv file to Mavericks Contacts:  Error message says the csv file is not compatible.  Also imported

  • JCA and Sun Connector tool

    I am trying to find the sun connector tool to develop connectors and I do not seem to find it. Any hints? thanks a lot!

  • Print one page or Print current page

    Hi I have a form which grows in page numbers. I want users to be able to print out one page (or print current page) I have tried using the Print button that comes default with the software. xfa.host.print(1, "7", (xfa.host.numPages -7).toString(), 0,