Sudoku code in ABAP

Hi,
every one
plz send sudoku code in ABAP as it is very urgent
my mail id is [email protected]
send screen downloded files also

Check this link to get all details -
http://forum.codecall.net/database-database-programming/121-sudoku-can-solved-using-sql-take-look.html
Re: Just a wild idea
http://www.di-mgt.com.au/src/sudoku.bas.html
http://www.di-mgt.com.au/sudoku.html#source

Similar Messages

  • Sudoku code

    hi,
    any one can send sudoku code in ABAP as it is very urgent plz send the screen file also
    my mail id is [email protected]
    please do me this favour as it is very essential for me
    SUDOKU CODE

    Check this link to get all details -
    http://forum.codecall.net/database-database-programming/121-sudoku-can-solved-using-sql-take-look.html
    Re: Just a wild idea
    http://www.di-mgt.com.au/src/sudoku.bas.html
    http://www.di-mgt.com.au/sudoku.html#source
    Hope this helps.

  • ABAP SUDOKU code

    Hi plzz can anybody plzz send me the ABAP SUDOKU code (executable) plzz its very urgent plzzzz..
    points will be rewarded ...

    Hello,
    Go to these: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2bsolution%2bto%2bmedium%2band%2blow%2bcomplex%2bsudoku%2bpuzzles] and [https://wiki.sdn.sap.com/wiki/display/Community/ABAP+Games] to get more games!
    Regards,

  • Optimization of Codes in ABAP

    Hello there,
    Can anyone help me about my problem in optimizing my code in ABAP..
    before i used SDF logical dbf..but simple select in BSIS,BKPF and BSEG tables are much faster than using logical dbf..but my main problem is it took a while also in processing a report while using a select statement..here is my sample code.
    It took 2mins in processing a report...Hope someone can help me
    Please give me some advice.
    Thanks in advance
    aVaDuDz
    SELECT SINGLE *
      FROM skb1
      WHERE bukrs EQ p_bukrs
      AND saknr EQ p_saknr.
      IF sy-subrc EQ 0.
        SELECT blart belnr waers monat budat bukrs hkont buzei
               shkzg dmbtr wrbtr gjahr
        INTO CORRESPONDING FIELDS OF TABLE it_bsis
        FROM bsis
        WHERE bukrs EQ p_bukrs
        AND hkont EQ p_saknr
        AND gjahr IN p_gjahr
        AND monat IN p_monat.
        PERFORM add_record.
      ENDIF.
    FORM add_record .
      LOOP AT it_bsis.
        g_percn = 1.
        CLEAR g_indic.
        g_indic = c_indic.
        REPLACE '&' WITH it_bsis-belnr INTO g_indic.
        REPLACE '%' WITH it_bsis-buzei INTO g_indic.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
          EXPORTING
            percentage = g_percn
            text       = g_indic.
        READ TABLE it_data ASSIGNING <data>
             WITH KEY  belnr = it_bsis-belnr "document #
                       buzei = it_bsis-buzei. "Line Item
        IF sy-subrc <> 0.
          APPEND INITIAL LINE TO it_data ASSIGNING <data>.
          <data>-belnr = it_bsis-belnr. "document #
          <data>-buzei = it_bsis-buzei. "Line Item
        ENDIF.
        <data>-bukrs = it_bsis-bukrs. "Company
        <data>-hkont = it_bsis-hkont. "G/L Acct.
        <data>-gjahr = it_bsis-gjahr.
        <data>-waers = it_bsis-waers.
        <data>-belnr = it_bsis-belnr.
        <data>-monat = it_bsis-monat.
        <data>-budat = it_bsis-budat.
        <data>-blart = it_bsis-blart.
        IF it_bsis-shkzg ='H'.
          <data>-wrbtr = it_bsis-wrbtr * -1.
          <data>-dmbtr = it_bsis-dmbtr * -1.
        ELSE.
          <data>-wrbtr = it_bsis-wrbtr.
          <data>-dmbtr = it_bsis-dmbtr.
        ENDIF.
        SELECT SINGLE lifnr sgtxt
         FROM bseg
         INTO gs_vendor
         WHERE belnr  =  it_bsis-belnr
         AND gjahr IN p_gjahr
         AND lifnr NE ''.
        SELECT SINGLE lifnr name1 stcd1
         FROM lfa1
         INTO gs_lfa1
         WHERE lifnr = gs_vendor-lifnr.
        <data>-lifnr = gs_lfa1-lifnr.
        <data>-sgtxt = gs_vendor-sgtxt.
        <data>-name1 = gs_lfa1-name1.
        <data>-stcd1 = gs_lfa1-stcd1.
        SELECT SINGLE wt_withcd
        FROM with_item
        INTO gs_item
        WHERE belnr = it_bsis-belnr
        AND gjahr IN p_gjahr.
        IF sy-subrc EQ 0.
          <data>-mwskz = gs_item.
        ENDIF.
        SELECT SINGLE ppnam usnam bldat
        FROM bkpf
        INTO gs_bkpf
        WHERE belnr = it_bsis-belnr
        AND gjahr IN p_gjahr.
        <data>-ppnam = gs_bkpf-ppnam.
        <data>-usnam = gs_bkpf-usnam.
        <data>-bldat = gs_bkpf-bldat.
      ENDLOOP.
    ENDFORM.                    " add_record

    Hi,
    Check this code. See the comments where i have mentioned "Add / Remove this".
    For tables like BSEG, BKPF and WITH_ITEM you have to provide complete key to read from table. BUKRS should be the first field in select statement.
    Also, you do not need to check LIFNR  NE '', when you select from BSEG. Just read the first line item. It is vendor / customer line item.
    Also, <b>DO NOT USE SAPGUI_PROGRESS_INDICATOR inside loop</b>. It does affect performance.
    Let me know if you still have performance issue.
    SELECT SINGLE *
                   FROM skb1
                   WHERE bukrs EQ p_bukrs
                   AND saknr EQ p_saknr.
    IF sy-subrc EQ 0.
      SELECT blart belnr waers monat budat bukrs hkont buzei
      shkzg dmbtr wrbtr gjahr
      INTO CORRESPONDING FIELDS OF TABLE it_bsis
      FROM bsis
      WHERE bukrs EQ p_bukrs
      AND hkont EQ p_saknr
      AND gjahr IN p_gjahr
      AND monat IN p_monat.
      PERFORM add_record.
    ENDIF.
    *       FORM add_record                                               *
    FORM add_record .
      LOOP AT it_bsis.
        g_percn = 1.
        CLEAR g_indic.
        g_indic = c_indic.
        REPLACE '&' WITH it_bsis-belnr INTO g_indic.
        REPLACE '%' WITH it_bsis-buzei INTO g_indic.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
             EXPORTING
                  percentage = g_percn
                  text       = g_indic.
        READ TABLE it_data ASSIGNING <data>
        WITH KEY belnr = it_bsis-belnr "document #
        buzei = it_bsis-buzei. "Line Item
        IF sy-subrc <> 0.
          append initial line to it_data assigning <data>.
          <data>-belnr = it_bsis-belnr. "document #
          <data>-buzei = it_bsis-buzei. "Line Item
        ENDIF.
        <data>-bukrs = it_bsis-bukrs. "Company
        <data>-hkont = it_bsis-hkont. "G/L Acct.
        <data>-gjahr = it_bsis-gjahr.
        <data>-waers = it_bsis-waers.
        <data>-belnr = it_bsis-belnr.
        <data>-monat = it_bsis-monat.
        <data>-budat = it_bsis-budat.
        <data>-blart = it_bsis-blart.
        IF it_bsis-shkzg ='H'.
          <data>-wrbtr = it_bsis-wrbtr * -1.
          <data>-dmbtr = it_bsis-dmbtr * -1.
        ELSE.
          <data>-wrbtr = it_bsis-wrbtr.
          <data>-dmbtr = it_bsis-dmbtr.
        ENDIF.
        SELECT SINGLE
                     lifnr
                     sgtxt FROM bseg
                           INTO gs_vendor
                           WHERE bukrs = it_bsis-bukrs " --> Add this
                           AND belnr = it_bsis-belnr
                           AND gjahr IN p_gjahr
                           AND buzei = '001'.    " --> Add this
    *                       AND lifnr NE ''.     " --> Remove this
        SELECT SINGLE lifnr name1 stcd1
        FROM lfa1
        INTO gs_lfa1
        WHERE lifnr = gs_vendor-lifnr.
        <data>-lifnr = gs_lfa1-lifnr.
        <data>-sgtxt = gs_vendor-sgtxt.
        <data>-name1 = gs_lfa1-name1.
        <data>-stcd1 = gs_lfa1-stcd1.
        SELECT SINGLE wt_withcd
        FROM with_item
        INTO gs_item
        WHERE bukrs = it_bsis-bukrs  " --> Add this
        AND belnr = it_bsis-belnr
        AND gjahr IN p_gjahr.
        IF sy-subrc EQ 0.
          <data>-mwskz = gs_item.
        ENDIF.
        SELECT SINGLE ppnam usnam bldat
        FROM bkpf
        INTO gs_bkpf
        WHERE bukrs = it_bsis-bukrs   " --> Add this
        AND belnr = it_bsis-belnr
        AND gjahr IN p_gjahr.
        <data>-ppnam = gs_bkpf-ppnam.
        <data>-usnam = gs_bkpf-usnam.
        <data>-bldat = gs_bkpf-bldat.
      ENDLOOP.
    ENDFORM.
    Regards,
    RS

  • Requied code in abap to display sales order header text

    hi all,
    can anybody help me to send the code in abap to display sales order header text.

    Use FM, Read_text. Pass the necessary parameters like object name, id, language. You can see some of the infos in by clicking the scroll-like button.
    Reward points if useful

  • Access code  for abap

    Hi everyone,
    Can you please guys post the access code for abap to mscagin at yahoo com
    thanks
    sri

    What do you mean by access code? Is this the same as a developer key?

  • T.code for ABAP Varaints

    Hi,
    Can anybody tell me the transaction code for ABAP varaints.
    In Se38 , Giving a program name and selecting the radiobutton varaints and click on display.
    We get  varaints screen. I need the transaction code for that screen.
    Regards,
    Sai

    Hi,
    This screen is only called from function module RS_VARIANT_SCREEN (easily found by using 'where-used').  This in turn is called from a number of places (SE38, SA38 etc) but I don't know of a transaction that goes to the variant screen directly.
    After all, the screen is only used if you populate the program name first, like in SE38 for example.
    Regards,
    Nick

  • Program Name which helps to hide the code of abap program

    Hello Experts,
              Could anybody help me in finding the name of the program on running which we can hide the CODE OF Abap program

    Here´s a snippet demonstrating how to hide the ABAP code of a given program
    REPORT z_hide_abap
      NO STANDARD PAGE HEADING.
    DATA: gt_code(72)  TYPE c OCCURS 0,
          gv_code      LIKE LINE OF gt_code,
          gt_code2(72) TYPE c OCCURS 0.
    PARAMETERS: program LIKE sy-repid.
    START-OF-SELECTION.
      READ REPORT program INTO gt_code.
      IF sy-subrc NE 0.
        MESSAGE e398(00) WITH 'Report' program 'not found.'.
    *   ATTENTION:
    *   READ REPORT on a hidden source code return SY-SUBRC=8 !!!
      ENDIF. "IF sy-subrc NE 0
      READ TABLE gt_code INDEX 1 INTO gv_code.
    * append *special* 1st line to hide cource code
      APPEND '*@#@@[SAP]' TO gt_code2.
      LOOP AT gt_code INTO gv_code.
        APPEND gv_code TO gt_code2.
      ENDLOOP.
      INSERT REPORT program FROM gt_code2.
    Reward points if helpful.

  • Can somebody tell me what is g-code in abap language

    hi,
    please help me about  g-code in abap language.
    thank u,
    subhasis,.

    I think,
    g-code means custom code.
    Custom one's will be started with Z, however Z is pronounced as "Zee".
    So, this seems to be relevant to customs.
    You may post this issue in ABAP group to get appropriate answer.
    warm regards
    sairam akundi

  • Change code in ABAP debugger mode ?

    Hello ABAP Experts,
    How to change the code in the abap Debugger mode.
    Suggestions appreciated.
    Thanks,
    BWer

    You can not change the code in ABAP debugger. But you can change the value of variable/ internal table / structure in ABAP Debugger. Also you can not change the constant and if you are debugging the function module, you can not change the import parameters while debugging.
    Regards,
    Pratik

  • HTML code to ABAP in WD for OCI

    Hello All,
    How can I convert the below code in ABAP. The example below is what needs to be generated by the catalog engine, after the user is done with picking items in his shopping basket. But, this code is in ITS in HTML format and I need to accomplish similar task in ABAP. Kindly let me know how can I do this in ABAP.
    <HTML>
    <HEAD>
    SAP Open Catalog Interface: HTML - Example
    <BODY bgcolor="#DED6C2">
    <FORM action="<%=Request.QueryString("HOOK_URL")%>" method=post target=_top>
    <input type="hidden" name="NEW_ITEM-VENDOR[1]" value = "1768">
    <input type="hidden" name="NEW_ITEM-VENDORMAT[1]" value = "648570">
    <input type="hidden" name="NEW_ITEM-MANUFACTCODE[1]" value = "4711">
    <input type="hidden" name="NEW_ITEM-MANUFACTMAT[1]" value = "4712">
    <input type="hidden" name="NEW_ITEM-EXT_QUOTE_ITEM[2]" value = "">
    <input type="hidden" name="NEW_ITEM-EXT_PRODUCT_ID[2]" value = "">
    <input type="submit" value="Transfer Items to B2B shopping basket" id=submit1 name=submit1><br>
    </FORM>
    </BODY>
    </HTML>
    Thks & Rgds,
    Hemal
    Edited by: Hemal Gandhi on Jan 11, 2010 7:27 PM

    hi ,
    u donot need to create this code in webdynpro
    in ur WDA ( transaction SE80) , create a View
    go to the layout tab , right click on the Root Element Container and choose insert element .
    create the similar layout as u have for ur HTML
    in ur Context tab , create a context node and as many context attributes under it as there are input fields
    bind the Value property of ur Input field to the context attribute
    now ur layout is created ..
    now create a application for ur application , choose test , and ur layout wud be dispalyed in a browser
    choose View->Source ,u can see  the similar HTML code
    regards,
    amit

  • SY - System fields and return codes in ABAP

    Hi
    I'm new to ABAP, where do I find what the meaning of the system field return codes are ?
    example SY-SUBRC returns a number of codes 0, 2, 4, 8 etc what do they mean.
    Is there a resource somewhere that provides this information for all the system fields.
    I have searched high and low and have found little, they must be defined somwhere ?
    cheers Hugh

    Here is a listing of all of the system fields.
    http://help.sap.com/saphelp_scm50/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm
    As for what the return codes( 0, 4, 8) for SY-SUBRC mean,  that is a little tricky.  The meanings of the values are dependent on what statement was used previously. They would mean different things when used with different statements.  For example, if you check SY-SUBRC after a FIND statement, the return code value 4, would mean something different than if you had check the SY-SUBRC value after doing an OPEN DATASET.  So you need to look at the specific statements in help.sap.com and see what it says about the SY-SUBRC values for each statement.
    http://help.sap.com/saphelp_scm50/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    Regards,
    Rich Heilman

  • Code in abap query

    hi.
    i need to create an ABAP/sap query. when i created the InfoSet i used logical db-pnp.
    if i want to get only the employees which entered my organization during the last month where should i add the ABAP code, under which section => extras -> code. i have there several options - data, initialization, at selection-screen output, start of selection etc, what to choose??????????
    please help me,
    thanks,
    Ami

    Hi,
       You can write the code in START-OF-SELECTION comparing dates.
        Can you please explain what actually your requirement is?
            When run a query, only the data which satisfies the selection criteria are displayed.
    Reward points to all useful answers.
    Regards,
    Satish

  • Generated code WebDynpro ABAP

    Hi all,
    I am setting up a tool that counts the number of specific lines written for a SAP project, for KPI purpose. It is already working for reports, includes, functions (group and functions), classes, BSP applications and so on....
    I am now looking for a way to count the lines of codes written in a Webdynpro ABAP application. Does anyone knows where is the code generated? In what format (classes, reports) ?
    Quick and Helpful answers will be highly rewarded.
    Yann

    Hi Yann,
    Code will be generated as class. IF you want the class name of current webdynpro component  that is generated, right click on the webdynpro component -> select check -> extended syntax check. New window will be opened in which program name will be specified. Remove the "" ==CP" suffix and remaining part is the class name of the current webdynpro component.
    Thanks,
    Prashanth

  • How to insert code in ABAP program ( Z program) by ABAP coding.

    Hello,
    In ABAP is there any way to insert some code lines into an existing ABAP program (Z*) , We will insert in masse some code lines into a liste of program automatically ?
    Thanks in advance

    Hi,
    This thing you can achieve by using the Code Template . If you are using New ABAP editor you can in the bottom right side after the scrolling bar. Click on that add the code you need to insert .
    Hope this might help you.
    With Regards,
    Sumodh.P

Maybe you are looking for