Help in POSTING_INTERFACE_CLEARING

Hi,
Somebody Know how Function POSTING_INTERFACE_CLEARING works or maybe If  there are any function which works like POSTING_INTERFACE_CLEARING . I will appreciate your help

Hello Michael
Have a look at the report executed by transaction FCC1 ( Payment Cards: Settlement ). There you find the entire coding with all relevant function modules for clearing open items.
Regards
  Uwe

Similar Messages

  • FB05 posting problem using POSTING_INTERFACE_CLEARING

    Hi All,
      I have a problem posting FB05 using POSTING_INTERFACE_CLEARING.My requirement is to select open item based on document number and then create another leg for that open item using GL account,posting key and amount that matches the selected open item amount.
    I am not sure whether I am not doing the right thing because I get an error 'Difference is too large for  clearing'. If I actually go to FB05 and 'choose open item' for document number and try to hit 'Save' on the list of open items screen,I get the same error. I then  select 'Charge off difference' and it takes me to screen that is quite similar to FB01 and I enter the other leg of the entry i.e posting key,acct no,amount etc.I want to replicate the same process using funtion module.I am sending you the code,please help me.
    start-of-selection.
      i_splitinput-compcode = '0410'.
      i_splitinput-currency = 'USD'.
      i_splitinput-amount = '299'.
      i_splitinput-reference = '90286483'.
      i_splitinput-date = '20090320'.
      i_splitinput-type = 'D'.
      i_splitinput-clearingacct = '101002'.
      append i_splitinput.
      loop at i_splitinput.
        at first.
          perform posting_interface_start using 'C'.
        endat.
        at new currency.
          perform f_create_document_header using i_splitinput-compcode
                                                 i_splitinput-currency.
        endat.
        perform f_create_document_items .
        at end of currency.
          perform f_post_gl_document.
        endat.
        at last.
          perform f_posting_interface_end.
        endat.
      endloop.
    *&      Form  posting_interface_start
          text
         -->P_P_TYPE  text
    form posting_interface_start  using    p_type.
      data lv_mode type c value 'N'.
      if p_type = 'C'.
        call function 'POSTING_INTERFACE_START'
          exporting
            i_function         = 'C'
            i_mode             = lv_mode
            i_update           = 'S'
          exceptions
            client_incorrect   = 1
            function_invalid   = 2
            group_name_missing = 3
            mode_invalid       = 4
            update_invalid     = 5
            others             = 6.
        if sy-subrc <> 0.
          message 'Error initializing posting interface'(e05) type 'I'.
        endif.
      endif.
    endform.                    " posting_interface_start
    *&      Form  f_create_document_header
          text
    -->  p1        text
    <--  p2        text
    form f_create_document_header using p_compcode p_currency.
      data: l_waers type waers,
    l_postdate(10) type c,
    l_docdate(10),
    l_bktxt type bktxt,
    l_blart type blart.
    *---Convert dates to proper format MM/DD/YYYY
      write p_pstdat to l_postdate mm/dd/yyyy.
      write p_docdat to l_docdate  mm/dd/yyyy.
      i_ftpost-stype = 'K'.   "Header
      i_ftpost-count = 1.
      perform ftpost_field using: 'BKPF-BUKRS' p_compcode,  "Company Cd
                                  'BKPF-WAERS' p_currency,  "Doc Currency
                                  'BKPF-BLART' p_doctyp,  "Doc Type
                                  'BKPF-BLDAT' l_docdate,   "Doc Date
                                  'BKPF-BUDAT' l_postdate,   "Posting Dt
                                  'BKPF-BKTXT' p_doctxt,  "Header Text
                                  'BKPF-XBLNR' p_ref,     "Ref Doc
                                  'RF05A-AUGTX' 'Test'.  "Clearing item text
    *creditnote to your own
    *debit to customer but sometimes you post credit
    *payor-vendor +ve    payee-customer  -ve
      i_ftpost-count = 0.
    endform.                    " f_create_document_header
    *&      Form  ftpost_field
          text
         -->P_1045   text
         -->P_PA_BUKRS  text
    form ftpost_field using field_name type any
                            field_value type any.
      i_ftpost-fnam = field_name.
      i_ftpost-fval = field_value.
      append i_ftpost.
    endform.                    " ftpost_field
    *&      Form  f_create_document_items
          text
    -->  p1        text
    <--  p2        text
    form f_create_document_items .
    *concatenate i_splitinput
      i_ftclear-agkoa  = 'D'."D-cust, v-vend
      i_ftclear-agkon  = '1041048'."cust/ven acct
      i_ftclear-agbuk  = i_splitinput-compcode.
      i_ftclear-xnops  = 'X'.
      i_ftclear-xfifo  = space.
      i_ftclear-agums  = space.
      i_ftclear-avsid  = space.
      i_ftclear-selfd  = 'BELNR'.
      i_ftclear-selvon = i_splitinput-reference.
      i_ftclear-selbis = 'Test'.                              
      collect i_ftclear.clear i_ftclear.
    i_ftclear-selvon = '101002'.
    i_ftclear-selbis = '101002'.                           
    append i_ftclear.
      i_ftpost-stype = 'P'.  "Details
      i_ftpost-count = i_ftpost-count + 1.
      perform ftpost_field using: 'RF05A-NEWBS' '15',      "Post Key
                                  'RF05A-NEWKO' '1071990',   "GL Account
                                  'BSEG-WRBTR'  '299',     "DC Amount
                                  'BSEG-SGTXT'  'SAN'.      "Item Text
                                 'BSEG-ZUONR'  i_post-merchant_id.
    *lt_ftclear-selvon = p_doc2.
    *lt_ftclear-selbis = p_doc2.
    *APPEND lt_ftclear.
    endform.                    " f_create_document_items
    *&      Form  f_post_gl_document
          text
    -->  p1        text
    <--  p2        text
    form f_post_gl_document .
      refresh i_blntab.
      clear i_blntab.
      call function 'POSTING_INTERFACE_CLEARING'
        exporting
          i_auglv                          = 'UMBUCHNG'
          i_tcode                          = 'FB05'
        I_SGFUNCT                        = ' '
        I_NO_AUTH                        = ' '
        importing
          e_msgid                          = v_msgid
          e_msgno                          = v_msgno
          e_msgty                          = v_msgty
          e_msgv1                          = v_msgv1
          e_msgv2                          = v_msgv2
          e_msgv3                          = v_msgv3
          e_msgv4                          = v_msgv4
          e_subrc                          = g_subrc
        tables
          t_blntab                         = i_blntab
          t_ftclear                        = i_ftclear
          t_ftpost                         = i_ftpost
          t_fttax                          = i_fttax
       exceptions
         clearing_procedure_invalid       = 1
         clearing_procedure_missing       = 2
         table_t041a_empty                = 3
         transaction_code_invalid         = 4
         amount_format_error              = 5
         too_many_line_items              = 6
         company_code_invalid             = 7
         screen_not_found                 = 8
         no_authorization                 = 9
         others                           = 10
      if sy-subrc <> 0.
        v_message = 'Posting Interface Error.'.
      endif.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = v_msgid
            lang      = sy-langu
            no        = v_msgno
            v1        = v_msgv1
            v2        = v_msgv2
            v3        = v_msgv3
            v4        = v_msgv4
          IMPORTING
            msg       = v_message
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
    WRITE : V_MESSAGE.
    endform.                    " f_post_gl_document
    *&      Form  f_posting_interface_end
          text
    -->  p1        text
    <--  p2        text
    form f_posting_interface_end .
      call function 'POSTING_INTERFACE_END'
        exporting
          i_bdcimmed              = ' '
        exceptions
          session_not_processable = 1
          others                  = 2.
      if sy-subrc <> 0.
      endif.
    endform.                    " f_posting_interface_end
    Thanks in advance.

    Hi Abaper,
      This is in continuation of my previous email,I am sending you my code.Please take a look and let me know your suggestions.Also can you please share with me your code if you have ever worked with FB05.
    Also I have debugged and found that at the end on program SAFM05A screen 0733 ,the code enters document number BELNR and does okcode - /11. This takes to the screen SAPDF05X  screen 3100 where it does try to save.I believe 3100 is a final screen according to the FM code but there is something I may not be passing which is not allowing it to save.
    *Session header
          perform populate_xbgr00.
          append xbgr00 to dataset.
        write p_docdat to p_docdat mm/dd/yy.
        write p_pstdat to p_pstdat mm/dd/yy.
    *Document header
              perform populate_xbbkpf using
                i_splitinput-compcode
                p_docdat
                p_pstdat
                p_doctyp
                 i_splitinput-currency
                sum_inprec_hd_tmp-xblnr
                'Test'.
              append xbbkpf to dataset.
    *bbseg bselk and bselp
            perform populate_xbbseg .
    *********forms
    form populate_xbgr00 .
      move '0' to xbgr00-stype.
      move 'zsan' to xbgr00-group.
      move sy-mandt to xbgr00-mandt.
      move sy-uname to xbgr00-usnam.
      move 'X' to xbgr00-xkeep.
    move space to xbgr00-xkeep.
      move '/' to xbgr00-nodata.
    endform.                    " populate_xbgr00
    form populate_xbbkpf  using  p1 p2 p3 p4 p5  p7.
      move '1' to xbbkpf-stype.
      move 'FB05' to xbbkpf-tcode.
      move p2 to xbbkpf-bldat.
      move p4 to xbbkpf-blart.
      move p1 to xbbkpf-bukrs.
      move p3 to xbbkpf-budat.
      move '/' to xbbkpf-monat.
      move p5 to xbbkpf-waers.
      move '/' to xbbkpf-kursf.
      move '/' to xbbkpf-belnr.
      move '/' to xbbkpf-wwert.
    move p6 to xbbkpf-xblnr.
      move '/' to xbbkpf-bvorg.
      move p7 to xbbkpf-bktxt.
      move '/' to xbbkpf-pargb.
      move 'UMBUCHNG' to xbbkpf-auglv.
    endform.
    form populate_xbbseg  .
      move '2' to xbbseg-stype.
      move 'BBSEG' to xbbseg-tbnam.
      move '15'  to xbbseg-newbs.
      move '100'  to xbbseg-wrbtr.
      move 'Assign'  to xbbseg-zuonr.
      move 'Itemtext'  to xbbseg-sgtxt.
      move I_SPLITINPUT-CLEARINGACCT to xbbseg-newko.        "G/L
      append xbbseg to dataset.
    xbselk-stype = '2'.
    xbselk-agkon = 'CUST0010'.
    xbselk-agbuk = i_splitinput-compcode.
    xbselk-agkoa = 'K'.
    xbselk-sende = '/'.
    xbselk-tbnam = 'BSELK'.
    XBSELK-XNOPS = 'X'.
    append xbselk to dataset.
    xbselp-stype = '2'.
    xbselp-feldn_1 = 'BELNR'.
    xbselp-slvon_1 = i_splitinput-reference.
    xbselp-slbis_1 = 'Test'.
    xbselp-tbnam = 'BSELP'.
    append xbselp to dataset.
    endform
    Edited by: abap78 on Mar 23, 2009 5:10 AM

  • Problem with clearing FM - POSTING_INTERFACE_CLEARING

    Hello,
    We are using the above FM for clearing customer open items against the incoming payments.
    This is working fine for some cases.
    However for large volume ransactions, this does not work - When executed in background the program gives error "BDC_OPEN_GROUP, group .. is invalid".
    Currently we are tyring to clear around 220000 open items against 1 payment document.
    This function module works fine for all scenarios, however does not work only for for large volume transactions.
    SAP does not provide any assistance for this issue as the function module is 'not released'
    Given below is the code that we are using to call the function module:
      CALL FUNCTION 'POSTING_INTERFACE_START'
        EXPORTING
          i_function         = 'C'
          i_group            = l_group
          i_mode             = 'N'
          i_update           = 'S'
          i_user             = sy-uname
          i_xbdcc            = 'X'
        EXCEPTIONS
          client_incorrect   = 1
          function_invalid   = 2
          group_name_missing = 3
          mode_invalid       = 4
          update_invalid     = 5
          OTHERS             = 6.
    Clear all the line items.
      CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
        EXPORTING
          i_auglv                    = c_auglv     "value = UMBUCHNG
          i_tcode                    = c_tcode    "value = FB05
        TABLES
          t_blntab                   = t_blntab
          t_ftclear                  = t_ftclear
          t_ftpost                   = t_ftpost
          t_fttax                    = t_fttax
        EXCEPTIONS
          clearing_procedure_invalid = 1
          clearing_procedure_missing = 2
          table_t041a_empty          = 3
          transaction_code_invalid   = 4
          amount_format_error        = 5
          too_many_line_items        = 6
          company_code_invalid       = 7
          screen_not_found           = 8
          no_authorization           = 9
          OTHERS                     = 10.
      IF t_blntab[] IS INITIAL.    " sy-subrc <> 0.
        w_flag = 'X'.
        w_indicator = 'U'.
      ELSE.
        CLEAR w_flag.
        w_indicator = 'A'.
        COMMIT WORK.
      ENDIF.
      CALL FUNCTION 'POSTING_INTERFACE_END'.
    Any pointers regarding the solution for this problem will be of great help.
    Thanks,
    Sushil Joshi

    Hello Sujeet,
    As I mentioned, we are using FM POSTING_INTERFACE_START, then POSTING_INTERFACE_CLEARING and POSTING_INTERFACE_CLOSE.
    We have successfully tested this FMs for clearing documents over 50000 at a time, without splitting into sets of 999. Its only for this particular case that it is failing.
    We have 1 payment document and rest others (over 200000) open items. So my question is - if we have to split for every 999 items, do we need to call the POSTING_INTERFACE_START, then call the FM POSTING_INTERFACE_CLEARING in a loop and at the end call POSTING_INTERFACE_CLOSE.
    Will this post a single clearing document or a separate payment document for every set of 999 items ?
    Please advise.
    Thanks.

  • Clearing two documents with POSTING_INTERFACE_CLEARING

    Hi, all
    I'm trying to use POSTING_INTERFACE_CLEARING function module to clearing two documents each other with
    additional cost. It's detail is like belows:
    1st,
    01(D) Customer A/R (100 EUR)  
    50(C) Sale (100 EUR)
    2nd,
    40(D) Bank Account (80 EUR)    
    50(C) Imcoming (80 EUR)
    3rd,
    40(D) Incoming (80 EUR)
    40(D) Cost for sale (20 EUR)        
    15(C) Customer A/R (100 EUR)
    Function Module really works fine.
    But the problem is that it displays popup dialog box asking whether to post
    the different amount of 1st and 2nd documents.
    I have to suppress this dialog box.
    But I could not found any way to hide it.
    I hope there would be some helpful replies...
    Thanks and regards,
    Lee

    hi,
    i think that's not possible to block this.
    an alternativfe is abap <b>rfbibl00</b> (see docu with trx. se38)
    A.

  • Posting a document by using function Module POSTING_INTERFACE_CLEARING

    Hi Gurus,
    I have a problem while using the function module POSTING_INTERFACE_CLEARING.
    My custom code is using the FM POSTING_INTERFACE_CLEARING to clear a document form one GL account and post a document in another GL account.
    after the document is posted 2 line items will created in the 2 GL accounts.
    But some of the fields are not being populated in the one of the line item for the document created (Reference fields) but the other line item has the reference fields has values being populated.
    I am passing the required values in the custom code to this FM.
    Please help me in this.
    Edited by: Anand Sirgapuram on Jun 3, 2009 2:34 PM

    Hi Anand,
    Could you please specify which reference fields are not getting populated?
    I think this is the standard behaviour of POSTING_INTERFACE_CLEARING. All the values in the first line item are populated, while in second line item only some of the fields like posting key, account number, account currency, amount, company code and business partner are populated.
    If you need to populate other values, I guess you will have to search for some enhancement points inside the FM POSTING_INTERFACE_CLEARING after the 'call transaction' statement.
    Regards
    Radhika

  • POSTING_INTERFACE_CLEARING

    Hi gurus,
    I'm facing a problem, when using "POSTING_INTERFACE_CLEARING", populating the field DF05B-PSSKP (discount), does anyone knows using this funcion modulo how to populate this fields ?
    Thx in advance ... Ricardo.

    I've solved it.
    You must fill the table ftpost with the header data and all the documents to be cleared in the ftclear table. In this last table you must use the field 'selfd' to indicate from what field get the data.
    There's an example:
    Header data:
            t_ftpost-count = 1.   "Nº de dynpro.
            t_ftpost-stype = 'K'. "K = Cabecera.
            t_ftpost-fnam  = 'BKPF-BLDAT'.
            t_ftpost-fval  = fecha.
            APPEND t_ftpost.
            t_ftpost-fnam  = 'BKPF-BUDAT'.
            t_ftpost-fval  = fecha.
            APPEND t_ftpost.
    Documents to be cleared:
    loop...
              CONCATENATE factura
                          ti_alv1-ejercicio
                          ti_alv1-posicion
                     INTO factura.
              t_ftclear-agkoa = 'S'.
              t_ftclear-xnops = 'X'.
              t_ftclear-agbuk = ti_alv1_aux3-sociedad.
              t_ftclear-agkon = aux_cuenta_pos.
              t_ftclear-selvon = factura.
              t_ftclear-selfd  = 'BELNR'.
              APPEND t_ftclear.
    endloop.
            CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
              EXPORTING
              Proceso de compensación          = Salida de pagos
                i_auglv                          = 'AUSGZAHL'
                i_tcode                          = 'FB05'
              IMPORTING
                e_msgid                  = i_msgid
                e_msgno                  = i_msgno
                e_msgty                  = i_msgty
                e_msgv1                  = i_msgv1
                e_msgv2                  = i_msgv2
                e_msgv3                  = i_msgv3
                e_msgv4                  = i_msgv4
                e_subrc                  = i_subrc
              TABLES
                t_blntab                 = t_blntab
                t_ftclear                = t_ftclear
                t_ftpost                 = t_ftpost
                t_fttax                  = t_fttax.
    I hope this could help you.
    Don't forget regards points :-P

  • Reg function module POSTING_INTERFACE_CLEARING

    Dear experts,
    I have a requirement in tcode FB05(Posting with clearing: Initial screen).  In that i need to select the radio button 'Transfer Posting with Clearing'.  I dont know exactly what happens here. I have to use function module POSTING_INTERFACE_CLEARING to post and clear the document. Can anybody tell me what this function module will do and by guiding me in this regard. Kindly help me in giving sample code as to how to handle this.
    thks in advance,
    ram

    Hello Ram
    Have a look at thread [POSTING_INTERFACE_CLEARING|POSTING_INTERFACE_CLEARING; and the links provided there.
    You may also want to have a look at transaction FCC1 (Payment Cards: Settlement). The report RFCCSSTT is used to settle open items payed with credit cards:
        ... FB05
          PERFORM posting_interface_start.
          PERFORM fb05_posting.
          PERFORM posting_interface_end.
        ... and Settlement
    Regards
      Uwe

  • DME error : POSTING_INTERFACE_CLEARING

    Dear Gurus.
    I could run payment on F110 properly.
    But when I create DME file, error displayed that
    "Internal error when calling POSTING_INTERFACE_CLEARING"
    DME program is RFFOJP_T.
    Do you have any idea how to solve?
    BR
    Y.Kaneko

    Hi Yoshitada / Narasimham,
    Please check below information which might help you on resolving this error:
    SAP Note 304698
    Check if the tables T042E, T012D are maintained in your system.
    Go to T-cd:SU52 and check there is 'BUK'(parameter ID) or not.
    If there is BUK, enter the Parameter value for BUK with CAPITAL letters.
    Enter program 'RFFOJP_T' and push Execute button at t-cd:SE38.
    On next screen, fill in 'Run date' and 'Identification feature' and set 'A:Display all screens' to field 'Posting session'.
    Then, execute RFFOJP_T. You can process the transaction by push ENTER key, and check if any error messages are displayed.
    This issue might occur if you run the program in any other language other than 'JA'. This is because the program uses some Japanese characters that are required in the ASCII file.
    If you run the program in language JA this issue should not occur.
    Also a missing customizing for posting of bank charge with program RRFOJP_T. Please complete your posting key customizing settings via FBZP for corresponding House bank T-cd: FBZP-> Edit-> Company code -> Bank charges (Japan)-> account determination
    Here you have to set the Bank subacct's postkey and the Bank charge acc's postkey as the same as 50. Then you can run the print program without error.
    If the transaction that you are using is selecting the information from the customer with withholding tax to determine the tax amount automatically please read the following information:
    Clearing transactions like, for example F-44, F-32, FB05 'Transfer posting with clearing' are generally not relevant to withholding tax. Thus documents which were posted using clearing transactions do not contain any withholding tax information.There is also no withholding tax information transferred into the cleared documents.
    Transactions relevant to withholding tax are FB01, FB60, FB70 or payment payment transactions like FBZ2, F110, FB05 (incoming payment and outgoing payment).Then in the clearing document withholding tax items are generated.
    Only with the option 'Transfer posting with clearing' the withholding tax will not be calculated in FB05 transaction. In relation with the withholding tax calculation the system works as design.
    Kind Regards,
    Leo

  • Problem with threads and simulation: please help

    please help me figure this out..
    i have something like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DrawShapes extends JApplet{
         private JButton choices[];
         private String names[]={"line", "square", "oval"};
         private JPanel buttonPanel;
         private DrawPanel drawingArea;
         private int width=300, height=200;
         public void init(){
              drawingArea=new DrawPanel(width, height);
              choices=new JButton[names.length];
              buttonPanel=new JPanel();
              buttonPanel.setLayout(new GridLayout(1, choices.length));
              ButtonHandler handler=new ButtonHandler();
              for(int i=0; i<choices.length; i++){
                   choices=new JButton(names[i]);
                   buttonPanel.add(choices[i]);
                   choices[i].addActionListener(handler);
              Container c=getContentPane();
              c.add(buttonPanel, BorderLayout.NORTH);
              c.add(drawingArea, BorderLayout.CENTER);
         }//end init
         public void setWidth(int w){
              width=(w>=0 ? w : 300);
         public void setHeight(int h){
              height=(h>=0 ? h : 200);
         /*public static void main(String args[]){
              int width, height;
              if(args.length!=2){
                   height=200; width=300;
              else{
                        width=Integer.parseInt(args[0]);
                        height=Integer.parseInt(args[1]);
              JFrame appWindow=new JFrame("An applet running as an application");
              appWindow.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              DrawShapes appObj=new DrawShapes();
              appObj.setWidth(width);
              appObj.setHeight(height);
              appObj.init();          
              appObj.start();
              appWindow.getContentPane().add(appObj);
              appWindow.setSize(width, height);
              appWindow.show();
         }//end main*/
         private class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   for(int i=0; i<choices.length; i++){
                        if(e.getSource()==choices[i]){
                             drawingArea.setCurrentChoice(i);
                             break;
    }//end class DrawShapes
    class DrawPanel extends JPanel{
         private int currentChoice=-1;
         private int width=100, height=100;
         public DrawPanel(int w, int h){
              width=(w>=0 ? w : 100);
              height=(h>=0 ? h : 100);
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              switch(currentChoice){
                   case 0:     g.drawLine(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 1: g.drawRect(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 2: g.drawOval(randomX(), randomY(), randomX(), randomY());
                             break;
         public void setCurrentChoice(int c){
              currentChoice=c;
              repaint();          
         private int randomX(){
              return (int) (Math.random()*width);
         private int randomY(){
              return (int) (Math.random()*height);
    }//end class drawPanel
    That one's from a book. I used that code to start with my applet. Mine calls different merthod from the switch cases. Say I have:
    case 0: drawStart(g); break;
    public void drawStart(Graphics g){
      /* something here */
    drawMain(g);
    public void drawMain(graphics g){
    g.drawString("test", x, y);
    //here's where i'm trying to pause
    //i've tried placing Thread.sleep between these lines
    g.drawLine(x, y, a, b);
    //Thread.sleep here
    g.drawRect(x, y, 50, 70);
    }I also need to put delays between method calls but I need to synchronize them. Am I doing it all wrong? The application pauses or sleeps but afterwards, it still drew everything all at once. Thanks a lot!

    It is. Sorry about that. Just answer any if you want to. I'd appreciate your help. Sorry again if it caused you anything or whatever. .n_n.

  • Query Help

    Table1:
    ou store point
    LS LIB1 50
    LS LIB1 200
    LS LIB1 100
    LS LIB1 79
    I have to insert table1 to table2 by splitting into every 143point and assing serial number for every 143 from parameter.
    in aboce example we can split 3 time 143 like below table2 sample.
    Table2
    ou store point serial_number
    LS LIB1 50 101
    LS LIB1 93 101
    LS LIB1 107 102
    LS LIB1 36 102
    LS LIB1 64 103
    LS LIB1 79 103
    i tried below procedure its not working.
    table may have any order like below.
    Table1:
    ou store point
    LS LIB1 200
    LS LIB1 50
    LS LIB1 100
    LS LIB1 79
    then table2
    ou store point serial_number
    LS LIB1 143 101
    LS LIB1 57 102
    LS LIB1 50 102
    LS LIB1 36 102
    LS LIB1 64 103
    LS LIB1 79 103
    create or replace procedure assign_serial(from_num number,to_num number) is
    bal number(10);
    begin
    bal := 0;
    for c1 in(select * from table1)
    loop
    if c1.point <=143 then
    if bal=0 then
    bal=143-used;
    insert int0 table2 values(c1.ou,c1.store,used);
    elsif used > 0 then
    used=used-bal;
    insert int0 table2 values(c1.ou,c1.store,bal);
    bal=0;
    if used > 0 then
    insert int0 table2 values(c1.ou,c1.store,used);
    end if;
    bal:=143-used;
    end if;
    end loop;
    end;
    How to split and assign serial number,please hELP.

    .after giving serial num i have to change points in table1 to 0.The problem for SUm and split for every 143 is ,different OU and store is there.we have to know for which store points we earned serial number.
    i hope this below logic little satisfy except assign cardnum,please........ check and currect the logic
    LS LIB1 50
    LS LIB1 200
    LS LIB1 100
    LS LIB1 79
    --variable used and bal
    for c1 in(select * from table1)
    loop
    used := c1.points;
    if c1.point <=143 then
    if bal=0 then
    bal=143-used;
    insert int0 table2 values(c1.ou,c1.store,used);
    elsif used > 0 then
    used=used-bal;
    insert int0 table2 values(c1.ou,c1.store,bal);
    bal=0;
    if used > 0 then
    insert int0 table2 values(c1.ou,c1.store,used);
    end if;
    bal:=143-used;
    end if;
    end loop;

  • Help my safari doesnt open and gives me a crash report

    help my safari doesn't open and gives me a crash report ever since i downloaded a file from the internet. I have a macbook air (early 2014) with running os x yosemite version 10.10.1

    There is no need to download anything to solve this problem.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • Apple Mini DVI to Video Adapter is not working. Please Help...

    I bought an Apple Mini DVI to Video Adapter to connect my Macbook to a TV using normal video cable. When I connect the cable, my Laptop DIsplay gives a flickr once and then it shows nothing. I checked Display in the system preference where I don't get a secondary monitor option. My TV is panasonic and it's an old one. I work on Final Cut Pro and it's very very important to see my videos on a TV. What am I doing wrong with the connection? Anyone Please Please help...

    Your probably not doing anything wrong. There are thousands of users with Similar issues and it seems to be with many different adapters.
    We have Mini DP to VGA (3 different brands) and they all fail most of the time. This seems more prevalent with LCD Projectors. I've tested some (50+) with VGA Monitor (HP) and they all worked, LCD Projector (Epson, Hitachi, and Sanyo) and they all fail, DLP Projector (Sanyo) and one worked.
    My Apple Mini DP to DVi works most of the time. My Mini DP to HDMI (Generic non Apple) works every time.
    The general consensus is that Apple broke something in the OS around 10.6.4 or 10.6.5 and its not yet fixed. As we are a school we have logged a case with the EDU Support group so will see what happens.
    Dicko

  • Mini dvi to video adapter help pleaseeeeeeeeeeeeeeeeeeeeeeeeee

    right,
    ive got a 20" intel imac. i bought a mini dvi to video adapter.it said it works with the intel macs.
    i maybe being a bit thick here but the end of the dvi seems to be a different size to the port on the mac.
    please help....................

    You might find relief in the iMac Forum. Perhaps they will appreciate your distinctive thread header style more fully.
    good luck.
    x

  • PSE icons instead of the photo. I need to view photos at a glance. Please help me????

    Please help, this is driving me crazy.  I have downloaded my free PSE #9, it came with my Leica Camera.  I cannot view at a glance any of my photos.  There is only an icon that reads, PSE.  To view any of my photos, I must click select and then preview.  This gets old, and I am doing 4 times the work. I am having to use the dates to guess where my photos might be.  I hate this!  My old Photo Shop #5 didn't do this.  When you went to my pictures, you could see every photo.
    I have tried the right click and open as any program.  What ever program I choose, that is the icon that appears.  No photo. Still no good.
    Please help.
    Thanking anyone in advance,
    Leica

    Hi,
    Are you using Windows Explorer to view the files?
    If so, load Explorer, go to the Tools menu and select Folder Options.
    Click on the View tab and make sure the first option (Always show icons, never thumbnails) is not checked.
    Click on OK and see if that is any better.
    Brian

  • IPOD NO LONGER RECOGNIZED BY ITUNES - HELP!!!!!!!!!!!!!!!!!

    When connecting to I-Tunes my Ipod now appears only as 'IPOD'
    The Windows 'Autoplay' box appears on the left hand side of my screen.
    Everything then freezes for a short while then an error message says that I-Tunes has detected an Ipod that is corrupted.
    My Ipod itself is fine so I'm reluctant to restore if that will not solve the problem.
    Is something to do with an automatic software update?
    Please help......................
    Advent   Windows XP  

    iOS: Device not recognized in iTunes for Mac OS X
    Do not omit the additional information pararaph.

Maybe you are looking for

  • Really disappointed with the Macbook pro

    Hi all, I purchased a Macbook pro in the middle of January 2011 with some inheritance money. I went for the cheapest one - was going to go for the white macbook like my partner but thought it would be worth the extra money to upgrade to the pro. It w

  • I just downloaded your update and nothing is working properly, and most pages are completely black. What to do?

    I got a popup for an update to Firefox, which I followed to the release notes. I read and downloaded the update. When I restarted Firefox, nothing is working correctly and most pages I try to open, including the Add-On manager displays completely bla

  • Kernel Panic after 10.5.2 update

    After repairing permissions I installed 10.5.2 via Software Update. Got continuos Kernal Panics like this: Tue Feb 19 12:50:16 2008 panic(cpu 6 caller 0x0019D334): "simple lock deadlock detection: lock=0xc1218b0, cpu=6, thread=0xc0857d8"@/SourceCache

  • CR Developer 12.0  Unable to Activate Chart Expert Functionality

    Have used Crystal Reports 9, Purchased CR Developere 12.0 in December 2008 Not able to get Chart Expert Data functionality to work. Attempted re-insalling without success.  Any Suggestions  Your assistance will be apprecated   DDM

  • How to archieve the All SD Transaction data

    Hi Gurus, I want to archive the all SD transaction data? i need  the sequence & archive object step by step to archive the transaction data? whats the prerequisite for archiving sd transaction data? please guide me.. warm regards, Dhananjay R. Edited