Modulepool

hi,
iam developing a program in which iam using a z-table.
iam using the bapi for production order cancel and create goods movement....
after running those bapis i have to update few fields in z-table ie...cancel conf counter, mat doc number  to the record from where i have taken the order for cancellation and material document for goods movement create.....so wat is the synatx i can use to update that particular row in z-table through my program.
please help me .This is urgent.. <= read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] here !
points will be rewarded. <= read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] here as well!
Regards,
Rohan.
Edited by: Julius Bussche on Jul 16, 2008 10:03 AM

Hi,
UPDATE TABLE ITAB FROM <WA> where KEY <key of table> = value.
MODIFY TABLE ITAB FROM <WA> where KEY <key of table> = value.
One more thing...
Never Use word URGENT in the thread... Moderator will lock the thread as its against the Rules of Engagement...
Regards
Narin Nandivada

Similar Messages

  • Warning message in Modulepool

    Hi All,
    How to create a warning message in Modulepool.
    Thanks
    Basheer

    Hi,
    Use the following Way You can use it in PAI.
    message 'Please Enter the correct Customer ID' type 'E'.
    Remember 1 thing that it will Block all of your input field, to handle this you will have to use the following in the u201CFlow Logicu201D.
    process after input.
      chain.
        field:  field1,
                field2,
                fieldn.
        module user_command_0001.
      endchain.
    After using Chain EndChain you will be able to use these input field.
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 4, 2009 7:36 PM

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • How to Fetch Data From an Internal table to a field in Modulepool Screen ??

    In my Modulepool Screen i have two fields ,
    Based on the data of the First field ,the second field will display the data.
    For ex-  first field - I choosed the data -" MARUTI",
                then in the second field , all d CARs ( 800,zen,waganor.....)related to MARUTI shd be displayed.
    without using POV module hw to use dis ? and also using POV ,what are the function modules to be used ..
    pls explore in details...
    Thnks to all d contributors for their Time.....

    see if u have a limited values to display in Listbox, den we will go for vrm_set_values.
    but here as per the requirement
    thr is no limited Values in d second dropdown box.
    Let me Clear abt the requirement.
    First field - issue no.
    2nd field- Item no.
    when u select a particular issue no, den in item it shd display the corresponding item nos related to that issueno. And both Fields r Primary keys in d table( customised Table.)
    this is wwht exactly my requirement.
    as i created The search help for issueNo, its displaying all the issueno Dat are in DB.
    But Itemno Field is nt behaving as per That.
    Pls Suggest me.. in details

  • Download and Upload Modulepool program

    hai all,
       Could any one say how to Download and Upload Modulepool program from sap.
    Thanks,
    Jeevan.

    Hi Puduru
    Welcome to ABAP forums.
    If you just want to export Module pool program once, you can use transaction SE80 and menu point Utilities->More Utilities->Upload/Download->Download option ( for each include / component ).
    Save it as a text file and then repeat the same process.
    Here's other programs for the same functionality. You can use one of them.
    http://www.members.tripod.com/abap4/Upload_and_Download_ABAP_Source_Code.html
    http://sap.ittoolbox.com/code/d.asp?d=1623&a=s
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/finding your code in bsp applications.article
    http://www.geocities.com/rmtiwari/Resources/Utilities/WebViewer.html
    http://www.dalestech.com/
    Dont forget to rewards pts, if it helps ;>)
    Regards,
    Rakesh

  • Drop down box in a modulepool

    Hi,
    I am creating a modulepool with a drop down box in one of the dynpros. I have managed to fill it with values using the 'VRM_SET_VALUES' function module.
    The problem comes when running the modulepoool. The field displays the drop down box with the correct values, but it does not take the values I select. The first opcion is the defualt, and even though I choose a different one it does not take the change.
    Is there something missing?
    Thanks in advance,
    Nerea.

    Hi Nerea,
    Check with this code
    TYPE-POOLS: VRM.
    TABLES SPFLI.
    TABLES SSCRFIELDS.
    DATA flag.
    DATA: NAME TYPE VRM_ID,
          LIST TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS PS_PARM LIKE SPFLI-CARRID  AS LISTBOX VISIBLE LENGTH 10
    USER-COMMAND
    fcodex.
    data: i_spfli type spfli occurs 0 with header line.
    PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
    USER-COMMAND
    fcodey.
    INITIALIZATION.
      NAME = 'PS_PARM'.
      DATA T TYPE I VALUE 0.
    SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
    SPFLI.
      loop at i_spfli.
        VALUE-KEY = i_spfli-CARRID.
        VALUE-TEXT = i_spfli-CARRID.
        APPEND VALUE TO LIST.
      endloop.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.
    AT SELECTION-SCREEN.
      if sy-ucomm eq 'FCODEX'.
        REFRESH LIST.
        CLEAR LIST.
        PQ_PARAM = ' '.
        NAME = 'PQ_PARAM'.
        SELECT  * FROM SPFLI WHERE CARRID = PS_PARM.
          VALUE-KEY = SPFLI-connid.
          VALUE-TEXT = SPFLI-connid.
          APPEND VALUE TO LIST.
        ENDSELECT.
      endif.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
          CALL FUNCTION 'VRM_SET_VALUES'
            EXPORTING
              ID     = NAME
              VALUES = LIST.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      clear i_spfli.
      refresh i_spfli.
    select * into table i_spfli from spfli where carrid = ps_parm and connid
    = pq_param.
      loop at i_spfli.
        WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
       'DEPARTURE TIME :', I_SPFLI-DEPTIME.
      ENDLOOP.
    Reward with point if it is helpful
    Regards
    Alfred

  • Select-options in ModulePool

    hi experts,
    I am facing one issue regarding the modulepool programming . In Module Pool Programming I am using select-options, I want to upload the selected ranges and also the excluded values as zeros in the database.Please any one help me.

    You can use the Select-Option as Ranges in a select statement....if you want exclude Zeros in DB you can use a simple condition.....WHERE VALUE > 0...
    Regards

  • Whr to find modulepool program of aTransaction

    Hi all,
    I find main program for a transaction code as report in some entries of TSTC table but when i run a transaction i find the program as modulepool program from system status option. In which table can i find the respective modulepool program of a tcode.
    for ez table entry for ME21N in TSTC is RM_MEPO_GUI and its corresponding program is SAPLMEGUI from system status option.
    Message was edited by:
            chandrahasa

    Hi,
    Run your Transaction.
    Then the screen of your program Displays.
    In the screen In the  Right Bottom corner there will be  your transaction name. Just click the Icon nearby and find your program name.
    Thanks,
    Reward If Helpful.

  • Table control in modulepool

    Hi,
    I have table control in modulepool.I have to edit some cells in my table control and update the same fields in actual table after pressing save button.And also I should maintain the modified field in some Ztable.
    Plese provide me the code if any body having the same scenario.
    It is urgent.
    Thanks
    suresh

    refer these
    http://sap.niraj.tripod.com/id25.html
    http://sap.niraj.tripod.com/id29.html
    <b>http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm</b>
    regards,
    srinivas

  • Difference between ordinary report and modulepool

    Hi sdn peoples,
                               I like to know the difference between modulepool and ordinary
    report.why we go for module pool ..list me the difference pls..
    regards& thanks ,
    veera

    Hi,
    Module pool programs are created in abap development work bench (TCODE: SE80).
    Here we can do all the works whatever you can do in abap.
    Module pool programs are also called dialog programs.
    The module Pool are reports prepared for different screens and to manage the sequeence of events of these screens, in the transaction SE80 you can see all the dynpros that you have for this kind of report, add new ones, add all types of element to the report.
    Process Before Output is the part of the dynpro code that is precessed before the user can do anithing with the data in the screen
    Process After Input is the part of the dynpro code that is preocessed after the interaction with the user.
    module pool programs are excuited using Tcode
    Thanks,
    Shankar

  • How to put field  as a mandatary in modulepool

    Hi,
    i want to put the fields as a mandatary in modulepool send me ur valueble adviice
    urgent
    advanced thanks,

    hi,
    In the PBO .
    do like this.
    loop at screen.
    if screen-name_of_field is initial.
    *error message.
    exit.
    endif.
    endloop.
    <b>the besdt method is use CHAIN END CHAIN</b>
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
    ELSE.
    PERFORM conn_obj_check.
    ENDIF.
    ENDIF.
    ENDMODULE. " modify_screenfields INPUT
    Regards
    Reshma

  • How to call Report output in Modulepools

    hi
    can any one suggest me
    How to call Report output in Modulepools
    i have a push button in modulepool after clicking that pushbutton i need a report output
    how to do this
    Thanks & Regards
    kalyan

    Hi Kalyan,
    From Module pool program you have to go display A Report output..
    So at User-Command of PAI use LEAVE TO LIST PROCESSING.
    Regarding this check the Demo program DEMO_LEAVE_TO_LIST_PROCESSING.
    And for further reference please check this SAP Help
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm
    For more help please check this thread
    Re: LEAVE TO LIST-PROCESSING
    Hope this would help you.
    Good luck
    Narin

  • I need how to insert records in ztable through modulepool

    Hi All
        I created a modulepool screen, in that i placed some fields from ztable.
       Now i enter the record in that screen text area and push submit button it would be
      store in ztable.
    plz some one help me by sending the INSERT code for that
    Thanks
    Lokesh

    Hi,
    Check out the following code.
    TABLES: Ztable.                          .
    DATA : BEGIN OF IT OCCURS 0,
          sortl LIKE kna1-sortl,
           SGTXT LIKE MSEG-SGTXT,
           WERKS LIKE MSEG-WERKS,
           LGORT LIKE MSEG-LGORT,
           END OF IT.
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
            LEAVE PROGRAM.
        WHEN 'CANCEL'.
            LEAVE PROGRAM.
        WHEN 'SAVE'.
           ztable-agency = it-sortl.
            ztable-AGENCY = IT-SGTXT.
            ztable-WERKS = IT-WERKS.
            ztable-LGORT = IT-LGORT.
            INSERT ztable.
       MESSAGE S100(ZMMABAP) .
       IF SY-SUBRC NE 0.
       MESSAGE E101(ZMMABAP).
       ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    *&      Module  STATUS_1000  OUTPUT
          text
    MODULE STATUS_1000 OUTPUT.
      SET PF-STATUS 'Zstatus'.
      SET TITLEBAR 'title'.
    ENDMODULE.     
    Reward points if helpful.
    regards,
    CS

  • Could anybody plz send some faq's on modulepool?

    Hi experts,
    I'm very new to module pool.
    could anybody plz send some faq's on modulepool?
    regards.
    venkat

    Module Pool Programming
    http://www.allsaplinks.com/dialog_programming.html
    http://sap.mis.cmich.edu/sap-abap/abap09/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://sap.mis.cmich.edu/abap-00/
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    http://sappoint.com/abap.html
    http://www.sap-img.com/abap.htm
    http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/abap/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://www.sappoint.com/faq/faqdiapr.pdf
    http://www.allsaplinks.com/dialog_programming.html
    Check the following Link
    http://www.sappoint.com/faq/faqss.pdf

  • How i can set break point in standard sap modulepool

    how i can set breakpoint in standard sap modulepool

    If you know the program name, it is no different from normal setting of break point.
    It will have a break point button in the abap editor.
    Place the cursor on the line and set the break point.
    Then run the transaction in another session.
    Or type /h from the transaction itsefl to start the debugging.
    see the wiki faqs section for debuging
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+debugger&
    Regards,
    Ravi

  • Help Window in a modulepool screen

    Hello Folks,
    I have created a button(named it as HELP) in the modulepool screen. I have a requirement where when i click on the button it should display the help information in the same screen.
    For example: whenever we click F1 on any standard field it will display the help information in a same screen with new window.
    Please assist me in fixing this.

    Hi
    trap the Fcode and write the code inside
    this is some demo programs which will help u.
    Hi Sri,
    Check these demo programs:
    DEMO_DYNPRO_F1_HELP
    DEMO_SELECTION_SCREEN_F1
    Regards,
    Amresh.

Maybe you are looking for

  • How many computers can I run this software on?

    The laptop I am currently using is dying. Can I install this on a new computer?         

  • SAPSQL_ARRAY_INSERT_DUPREC error in PM_PARTNER_MAINTAIN

    Hi every one. My problem is as follow: I create a Quality notification using function GENERATE_NOTIFICATION,and just before I assing a partner using function PM_PARTNER_MAINTAIN. The problem come when, after that, I try to change the user status of t

  • Need some urgent support from you guys! [iPad3 Display]

    I have an event on April 20th that I need to show off phase 1 of an app we're working on.  I really want to show it on the new iPad. I'm working in Flash Pro 5.5   ...    Can someone please tell me how to compile my app to work on the iPad High Res d

  • HOW CAN I DOWNLOAD THE RIGTONES THAT I PURCHASE

    HI MY NAME IS JOAQUIN I PURCHASE A FEW HOURS AGO SOME RINGTONES BUT I ALREADY RECEIVED ONLY 1 OF THE 5 RINGTONES WHAT CAN I DO ?????

  • Error in File-JDBC Scenario

    Dear All, I am working on FILE to JDBC scenario in which I am facing with the following error: - 2007-12-14 18:18:51 GMT+05:30: Error: TransformException error in xml processor class: Error processing request in sax parser: Error when executing state