Hi urgent script invoice

bank account value is not printing in output  even i am not finding data in t012k table.i am having doubt
that i don't have data in database when i checked out the database table.they have written select query like following mine support project
FORM HARD_CODE_NON_SECURITIZED_BANK.
  IF VBDKR-BUKRS = '4242' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC29'.
  ELSEIF VBDKR-BUKRS = '4230' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC24'.
  ELSEIF VBDKR-BUKRS = '4230' AND VBDKR-WAERK = 'USD'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC30'.
  ELSEIF VBDKR-BUKRS = '4220' AND VBDKR-WAERK = 'USD'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC31'.                        "4
  ELSEIF VBDKR-BUKRS = '4220' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC25'.
  ELSEIF VBDKR-BUKRS = '4210' AND VBDKR-WAERK = 'USD'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC27'.
  ELSEIF VBDKR-BUKRS = '4210' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC26'.                         "7
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'USD'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REUSD'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC28'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'OPR35'.                          "10
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'USD'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'OPR30'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'GBP'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'OPR31'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'OPR32'.                          "13
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC21'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'OPR33'.
  ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
    SELECT SINGLE * FROM T012K
           WHERE BUKRS = VBDKR-BUKRS
           AND   HBKID = KNB1-HBKID
           AND   HKTID = 'REC23'.                          "16
  ENDIF.

hi,
check this it may help you......
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
       EXPORTING
*    CLIENT                  = 001
        DATE                    = sy-datum
         FOREIGN_CURRENCY        = wa1-WAERS " here you need to declare your foreign currency i.e USD
         LOCAL_CURRENCY          = TCURR-FCURR
         FOREIGN_AMOUNT          = wa1-DMBTR " here you need to declare your amount field.
*    RATE                    = tcurr-ukurs
        TYPE_OF_RATE            = 'M'        " check this also the average rate
*    READ_TCURR              = 'X'
      IMPORTING
        EXCHANGE_RATE           = tcurr-UKURS
*    FOREIGN_FACTOR          =
        LOCAL_AMOUNT            = wa1-TOTAL  " this is the field where the converted amt has to be displayed.
*    LOCAL_FACTOR            =
*    EXCHANGE_RATEX          =
*    FIXED_RATE              =
*    DERIVED_RATE_TYPE       =
*  EXCEPTIONS
*    NO_RATE_FOUND           = 1
*    OVERFLOW                = 2
*    NO_FACTORS_FOUND        = 3
*    NO_SPREAD_FOUND         = 4
*    DERIVED_2_TIMES         = 5
*    OTHERS                  = 6
IF SY-SUBRC <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
**         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
rgds
anver

Similar Messages

  • URGENT - Printing invoice in order history doesn't work how do I get invoice via email?

    Hi,
    I cannot print/download my invoices. I need invoice for October urgently - I always get this error: errorCode=0001
    What is alternative way to get invoice - I have plan CC for individuals...
    Regards,
    Grzesiek

    Please try different browsers. Sometimes the pop up blocker is turned on which does not allow you to view the invoices.
    Like you can use this link for chrome : Manage pop-ups - Chrome Help,
    The reason I am mentioning it because the invoices are visible in your account from Adobe. I have viewed them. You can try changing the region & check. It should work.
    In case you are still unable to view, please contact Adobe Support at http://adobe.ly/yxj0t6  to assist you.
    Regards
    Rajshree

  • Urgent-Importing Invoices A/R thru DTW

    I need to import all open A/r invoices for a client from his legacy system. How will I do it thru DTW. please Help Me. This is urgent. The imported invoices should have an effect on the Aging report and Incoming payment due reports so that payments for those can be posted as and when recieved.

    hi debhraj,
    use oInvoices DTW templates in the following path
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oInvoices\
    There are two documents you should use it to upload
    ar invoice
    Header template
    1.documents.xlt
    Lines template
    2.documents_lines.xlt
    Mandatory fields in header template
    are  Record key,Card Code,DocDate,DocDueDate
    Mandatory fields in lines template are
    Record key,LineNum,ItemCode*,Price,Quantity,TaxCode,
    WarehouseCode*
    *you should define warehouse,customer master,
    item master,tax codes,item price in price list,numbering
    series
    you can use dtw templates in the following path
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Data preparation examples\10. Testcase1_Test Data for Import function\oInvoices
    to use it as a example.
    After successful uploading of ar invoices it
    results will be reflected in ar invoice,aging reports & incoming
    payments.
    For any doubts regarding using dtw
    refer to documentation
    how to guides in your current version
    on service market place.
    Jeyakanthan

  • Urgent - An invoice which has been paid, route for approval again

    Hi All,
    Below is the what I am stuggling to sort.
    Scenario - The invoice 6200382/1 was processed on 6 March 2009. It was approved on 23 March 2009 by Mr. DAVE F VENTURA and Mr. BENOIT M VERHAEGHE. The invoice was paid on 27 March 2009.It appears that the invoice has now again routed for approval, and was rejected on 17 April by Mr. DAVE F VENTURA. The rejection notification (attached) which Norma received, indicates that the invoice was rejected on 15 April 2009. How can an invoice which has been paid, route for approval again, and why is there a difference in the rejected dates as indicated on the approval history and the notification?
    This has happened for the second time. I am unable to give a solution to this problem. Need help urgently.
    Thanks,
    --Sonia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Sonia,
    I am facing the similar issue just that the invoice was not rejected.It was paid and re-routed for approval.
    Could you please let me know how you resolve this issue.

  • Urgent report invoice problem

    I have a serious problem with a invoice report that doesn't display all the lines and only prints on one page but the total is correct please help not a guru

    Check the properties of your outer most frame in the report, vertical sizing should be variable, it is not a report generation problem but a printing problem that is why
    your totals are correct.

  • Reg script invoice

    Hi,
    i copied std script program to customed script, i want to assign that one in nace transaction, i have a doubt which output type i will assign that customer script form,
    i could able to fine NEU in that output type,,
    which output type will i use???????
    pls help

    Hi,
    Go to se12 and see the tnapr table. see the application for the standard script. Go to NACE transaction. select the application. Choose the output type. Thereare output types like fax, printout edi etc. Choose the one you want. go to change mode. Enter the name of the customized script there and save.
    NEU is for purchase order.
    Regards,
    kamala.

  • Urgent: scripts

    hi to all,
    i need a help in scripts,
    how to copy script form between two servers.
    Thanks& Regards
    Kranthi Revuri

    Hello Kranthi,
    If you want to move the form to other server for instance From development to quality you have to contact your basis team to move the corresponding transports to the other system i.e your target system.
    If you have transport path and if you have authorizations
    Move transports using
    RSTXR3TR EXPORT
    and IMPORT tranpsorts
    If you want to copy between clients you can follow the steps given by other's in this thread.
    Reward if helps.
    Thanks,
    krishna

  • Invoice List SAP script - Problem with SAP script functionality

    Hello Friends,
    I am working on SAP script - Invoice List SD_INVOICE_LIST. The invoice list contains the underlying billing documents. As per the standard functionality, in the line items, its printing the underlying billing documents with the net value. My requirement is to dig these line items into another level, meaning, I need to display the line items of billing documents  as well(like material, material description, quantity, net price and net value of that item etc).
    The billing linte item informatin is stored in VBRP table and the VBRP structure is not at all defined in the print program of SD_INVOICE_LIST (I.E.RVADIL01). Change of standard SAP program is not an option for me here.
    In the external subroutine we can fetch these line items for each billing document in the invoice list. However, my question here is how to take these line items back to the sap script and print them in SAP script (We can print one line item but how to loop these fetched lines and print them on SAP script. Any help in this regard would be greatly appreciated.
    I think there is no standard smart form exist for the invoice list. Please also let me know if there is any standard smart form available for INVOICE List.
    Thanks in advanace for any help in this regard.
    Best regards,
    Siva

    Hi
    As you cannot change the standard, you will have to see if there are any enhancements provided in the print program. if not you have to copy into a custom one and do changes accordingly.
    Thanks,
    Venkatesh

  • Text display issue in SAP script

    Hi All,
    I have developed a sap script (Invoice) which is having a Footer window.
    The footer window should display page number and some text (address of company). The address data is stored in an internal table and the same will be made to display in sap script.
    Now my problem is the address data is displaying correctly in the second page. But no data is getting displayed in the first page. If the Invoice is of single page, the address data in Footer window is getting printed properly.
    The problem occurs only, when the invoice is of multiple pages....
    What might be the problem in this regard...??????
    Please help me, as this bug need to be fixed as early as possible....
    Regards
    Pavan

    The size of MAIN and FOOTER window are not getting truncated. Both window have designed properly.
    In the first page, the footer window will display Page No data and the address data will be invisible. In debig mode, i can see the value of address will be passed to text symbols of sap script.
    There are no conditions set in the sap script for Footer window.
    one more observation is that after execution (at print preview screen), if i go back and again click for print preview, the address data is getting printed in the first page...!!!
    Regards
    Pavan

  • Tax Code1 field in Invoice

    Hi all,
    I am working on SAP Script Invoice (VF02/ VF03), I have a requirement to print Tax code1 on the Invoice,, where to find that field in VF02/ VF03.
    Any help is highly appreciated.
    Thanks-

    Hello Rahul,
    Normally, call to the FM RV_BILLING_PRINT_VIEW is made in the print program from which you call the SAP Script to print the Invoice documents.
    The FM is called by filling the COMWA structure with the appropriate partner function and partner number coming from the condition records (NAST-PARVW & NAST-PARNR).
    The result is the detailed output from the Billing Doc Header (KOPF -> VBDKR)along with a lot of fields and also the Items (POS -> VBDPR).
    It is here in the VBDKR structure that you can get the Tax Code 1 field...and further use this in your script.
    This should resolve your problem.
    With Regards
    Vijay Gajavalli

  • Archiving sap scripts

    Hi Gurus,
    Right now , I am archiving SAP scripts(Invoices) as PDF files into filenet.A link is automatically generated between archived doc and invoice in SAP.But sometimes as archive system gets full , During that time I need to archive them to a folder in application server folder.I know that we can store the files into application server using open dataset , transfer dataset etc,, But this doesnot create a linkwith invoices in SAP.
    Kindly let me know if this is possible
    Regards,
    Raghu.

    Hi
    Go through the link given below :
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/a9f7a54b8a11d189510000e829fbbd/frameset.htm
    With Regards
    Nikunj shah

  • Stock Transport Order between Two Company codes

    Dear All
    Scenario-- Stock transport order Between two company codes.
    The valuation of Comapny Codes is at Moving Average Price.
    I have a scenario
    MAP of Issuing Plant-- Rs. 10 / kg
    I am able to pick up the price of Rs.10 (MAP) of issuing plant while creating PO.
    in receving plant.
    At the time of Goods issu the MAP has changed & become Rs.12/kg. Hence the goods issue takes place at Rs.12/- perkg.
    When we make GR at receiving plant ,the valuation of GR is at Rs.10 i.e at PO price.
    Is it possible to have a GR valuation at Goods issue price for that delivery note?
    Request Your feedback urgently.

    The invoice has the material costs at time of goods issue.
    You receipt is valuated to PO price. But when you post the invoice, then the MAP is adjusted,
    By setting up EDI, SAP will probably post the invoice before the goods receipt is done, hence the GR should be valuated with the invoice price.
    from Note 518368 - FAQ: Valuation for the purchase order;
    With which price is the goods receipt posted for a purchase order?
    Answer:
    If the goods receipt is executed before the invoice receipt, the goods movement is valuated with the purchase order price. If an invoice is already posted, the system uses the price of the invoice. If a partial invoice is received, the partial quantity corresponding to the invoice is valuated with the invoice price, the rest is valuated with the purchase order price.
    For more detailed information, refer to both the documentation of the material valuation and Note 380883.
    see as well Note 547570 - FAQ: VPRS in pricing

  • SRKIM: R12: Accounts Payable Trial Balance issue troubleshoot

    Purpose
    R12 에서 AP Trial Balance Report 확인 시 데이터가 비정상적일 경우 check 해야 하는 내용에 대해 확인 해 보도록 한다.
    Question
    R12 에서 invoice 생성 후 gl 로 transfer 하였으나 ap trial balance report 의 데이터가 비정상적인 것으로 확인 된다.
    어떤 내용을 확인 해야 하는가.
    Answer
    1. APList Diagnostics Script 을 해당 invoice 에 대해 수행 하여 아래의 내용을 확인한다.
    - Accounting 이 생성되어 gl로 모두 transfer 되었는지 여부.
    - Accounting Date 가 Trial Balance Report 의 start date 와 as of date 안에 포함 되는지 여부
    2.위의 내용에 문제가 없다면 아래 sql 로 데이터를 확인 해 보도록 한다.
    select *
    from xla_trial_balances
    where source_entity_id in (
    select entity_id
    from xla.xla_transaction_entities xte
    where application_id = 200
    and (
    (entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
    OR
    applied_to_entity_id in (
    select entity_id
    from xla.xla_transaction_entities xte
    where application_id = 200
    and (
    (entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
    3.GL 에 실제 해당 데이터가 존재 하는지 아래 sql 로 확인 해 보도록 한다.
    SELECT distinct aeh.*
    FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
    ael,
    XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
    WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
    and gjh.je_batch_id= gjb.je_batch_id
    and gjl.je_header_id = gjh.je_header_id
    and gjl.je_header_id = gir.je_header_id
    and gjl.je_line_num = gir.je_line_num
    AND gir.gl_sl_link_table in ('XLAJEL')
    and ael.gl_sl_link_table in ('XLAJEL')
    AND aea.application_id = 200
    AND aea.event_id = aeh.event_id
    AND aeh.ae_header_id = ael.ae_header_id
    AND gjb.je_batch_id = gir.je_batch_id
    and xte.application_id = 200
    and xte.entity_id = aea.entity_id
    and gjh.je_header_id = gir.je_header_id
    and gjh.je_source = 'Payables'
    and (
    (xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
    OR
    (xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
    SELECT distinct gjl.*
    FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
    ael,
    XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
    WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
    and gjh.je_batch_id= gjb.je_batch_id
    and gjl.je_header_id = gjh.je_header_id
    and gjl.je_header_id = gir.je_header_id
    and gjl.je_line_num = gir.je_line_num
    AND gir.gl_sl_link_table in ('XLAJEL')
    and ael.gl_sl_link_table in ('XLAJEL')
    AND aea.application_id = 200
    AND aea.event_id = aeh.event_id
    AND aeh.ae_header_id = ael.ae_header_id
    AND gjb.je_batch_id = gir.je_batch_id
    and xte.application_id = 200
    and xte.entity_id = aea.entity_id
    and gjh.je_header_id = gir.je_header_id
    and gjh.je_source = 'Payables'
    and (
    (xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
    OR
    (xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
    4.위의 sql 을 통해 Trial Balance Table 의 데이타가 잘 못 생성 되었음이 확인 되면 해당 Trial balance table 의 데이타를 recreate 하는 작업을 수행 해야 한다.
    Reference
    Note. 553484.1 - THE R12 ACCOUNTS PAYABLE TRIAL BALANCE DATA IS
    INCORRECT/WRONG

    Follow the below steps and Run the Trial Blance and let me know if it helps.
    Thanks
    Girish
    How to Rebuild Trial Balance Data (repopulate XLA_TRIAL_BALANCES)
    1. Navigate: Payables Responsibility > Setup > Accounting Setups > Subledger Accounting Setups > Open Account Balances Listing Definitions
    2. Query up your Report Definition: select Defined By = Accounting Flexfield or Segment (whichever applies in your case), click “Go”
    3. Click on Update icon in the "Actions" column – the definition's update page opens.
    4. "Touch" the definition by simply clicking "Apply" button (without making any change).
    This should start the “Open Account Balances Data Manager” concurrent processes

  • Send Immeditely causes COMMIT_IN_POSTING

    Hi folks,
    I am taking a SAP script Invoice, converting it to a PDF, and sending as an email attachment.
    My program works great when I use output dispatch time of "1 send with periodically scheduled job" and using program RSNAST00, but when I execute using "4 Send immediatley (when saving the application)" it fails with error COMMIT_IN_POSTING.
    Any idea why? How do I fix it?
    Thanks,
    Clint

    Hi Smith ,
    I'm also facing the same problem .
    In the smartform after configuring the message type with '4 SZend Immediately' and saving it ...generates a error message the update is terminated and shows error COMMIT_IN_POSTING.
    Can u please tell me how to overcome this .
    Thanks in advance
    Anil

  • Configuring Output

    Hi ,
    I have 2 SAP SCRIPTS (Invoice) to be developed one for CANADA & Non-Canada customers.
    How can I differentiate both scripts to be printed accordingly for the same transaction.
    Is it possible through output type configuration, if so how ?
    Thanks in Advance.

    u cannt do it thru Config or Access Seq.U have to put a logic in Driver Program while Selecting the layout.
    Regards
    Prabhu

Maybe you are looking for