Standard program for uploading budget values in expenses

Hi Experts,
can u please tell me the standard program to upload budget values in Expenses
thanks & regards..
Narendra

Hi,
This is a sample program to upload through excel sheet.
Check this code to upload vendor master through SHDB transaction.
report ZVEND_MST no standard page heading line-size
255.
*include bdcrecx1.
*parameters: dataset(132) lower case default
'c:\vend.mst'.
   DO NOT CHANGE - the generated data section - DO
NOT CHANGE    ***
  If it is nessesary to change the data section use
the rules:
  1.) Each definition of a field exists of two lines
  2.) The first line shows exactly the comment
      '* data element: ' followed with the data
element
      which describes the field.
      If you don't have a data element use the
      comment without a data element name
  3.) The second line shows the fieldname of the
      structure, the fieldname must consist of
      a fieldname and optional the character '_' and
      three numbers and the field length in brackets
  4.) Each field must be type C.
Generated data section with specific formatting -
DO NOT CHANGE  ***
data: begin of record,
data element: LIF16
        LIFNR_001(016),
data element: BUKRS
        BUKRS_002(004),
data element: EKORG
        EKORG_003(004),
data element: KTOKK
        KTOKK_004(004),
data element: NAME1_GP
        NAME1_005(035),
data element: SORTL
        SORTL_006(010),
data element: LAND1_GP
        LAND1_007(003),
data element: SPRAS
        SPRAS_008(002),
data element: BSTWA
        WAERS_009(005),
      end of record.
End generated data section ***
DATA : ITAB TABLE OF RECORD WITH HEADER LINE.
start-of-selection.
*perform open_dataset using dataset.
*perform open_group.
*do.
*read dataset dataset into record.
*if sy-subrc <> 0. exit. endif.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = 'C:\VENDOR.TXT'  
"TEXT FILE
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'
  TABLES
    DATA_TAB                      = ITAB
EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_READ_ERROR               = 2
   NO_BATCH                      = 3
   GUI_REFUSE_FILETRANSFER       = 4
   INVALID_TYPE                  = 5
   NO_AUTHORITY                  = 6
   UNKNOWN_ERROR                 = 7
   BAD_DATA_FORMAT               = 8
   HEADER_NOT_ALLOWED            = 9
   SEPARATOR_NOT_ALLOWED         = 10
   HEADER_TOO_LONG               = 11
   UNKNOWN_DP_ERROR              = 12
   ACCESS_DENIED                 = 13
   DP_OUT_OF_MEMORY              = 14
   DISK_FULL                     = 15
   DP_TIMEOUT                    = 16
   OTHERS                        = 17
IF SY-SUBRC <> 0.
     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
*In Loop Change Record With ITAB
like record-lifnr_001 with itab-lifnr_001 
  perform bdc_dynpro      using 'SAPMF02K' '0100'.
  perform bdc_field       using 'BDC_CURSOR'
                              'RF02K-KTOKK'.
  perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
  perform bdc_field       using 'RF02K-LIFNR'
                              record-LIFNR_001.
  perform bdc_field       using 'RF02K-BUKRS'
                              record-BUKRS_002.
  perform bdc_field       using 'RF02K-EKORG'
                              record-EKORG_003.
  perform bdc_field       using 'RF02K-KTOKK'
                              record-KTOKK_004.
  perform bdc_dynpro      using 'SAPMF02K' '0110'.
  perform bdc_field       using 'BDC_CURSOR'
                              'LFA1-SPRAS'.
  perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
  perform bdc_field       using 'LFA1-NAME1'
                              record-NAME1_005.
  perform bdc_field       using 'LFA1-SORTL'
                              record-SORTL_006.
  perform bdc_field       using 'LFA1-LAND1'
                              record-LAND1_007.
  perform bdc_field       using 'LFA1-SPRAS'
                              record-SPRAS_008.
  perform bdc_dynpro      using 'SAPMF02K' '0120'.
  perform bdc_field       using 'BDC_CURSOR'
                              'LFA1-KUNNR'.
  perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
  perform bdc_dynpro      using 'SAPMF02K' '0130'.
  perform bdc_field       using 'BDC_CURSOR'
                              'LFBK-BANKS(01)'.
  perform bdc_field       using 'BDC_OKCODE'
                              '=ENTR'.
  perform bdc_dynpro      using 'SAPMF02K' '0210'.
  perform bdc_field       using 'BDC_CURSOR'
                                'LFB1-AKONT'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_dynpro      using 'SAPMF02K' '0215'.
  perform bdc_field       using 'BDC_CURSOR'
                                'LFB1-ZTERM'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_dynpro      using 'SAPMF02K' '0220'.
  perform bdc_field       using 'BDC_CURSOR'
                                'LFB5-MAHNA'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_dynpro      using 'SAPMF02K' '0310'.
  perform bdc_field       using 'BDC_CURSOR'
                                'LFM1-WAERS'.
  perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
  perform bdc_field       using 'LFM1-WAERS'
                                record-WAERS_009.
  perform bdc_dynpro      using 'SAPMF02K' '0320'.
  perform bdc_field       using 'BDC_CURSOR'
                                'RF02K-LIFNR'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=ENTR'.
  perform bdc_dynpro      using 'SAPLSPO1' '0300'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=YES'.
  perform bdc_transaction using 'XK01'.
endLOOP..
Check It, Activate it and process in SM35.

Similar Messages

  • Standard program for uploading of IDOCs - CREMAS

    Dear SAP gurus,
    I would like to ask you if there exists some standard program for uploading IDOCs messages - type CREMAS (Vendor master data).
    Thank you in advance.
    Alena

    Has not been solved.

  • Any Standard Program to upload the financial data

    Hi Team,
                 Any standard program which will upload the financial data(trail balance) into sap fi.
    The scenario is  that there are few company codes which is not in sap and we need to upload their financial data in sap like trail balance, I need to upload this company code data in sap fi, please suggest some standard program which uploads this data.
    Thanks in advance
    Kind Regards
    sridhar

    Hi,
    Standard programs are there, but those dont fit to your requirement.
    e.g. Based on the account type(D, K, S) there are different different fields should be filled up.
    If it is Vendor invoice, you have to capture Inv.no., text, leacy subledger number if required.
    All these fields are not required for GL data upload.
    Better create 3 LSMW'S for GL, Vedor & Customers.
    Rgds
    Murali. N

  • API for uploading flexfield value

    We have a fresh installation of Oracle EBS and start to do the setup.
    I would like to know if Oracle has API for uploading flexfield values since we have hundred thousand values that we need to setup in a flexfield. Instead we use 3rd party sofware e.g : Dataloader we're considering if we make a custom program for uploading them.
    I appreciate your help.

    @Srini Chavali
    this flexfield is for Accounting Flexfield.
    @Pillair
    is this FND_FLEX_VALUES_PKG.LOAD_ROW can be used for Accounting Flexfield also ?
    Thanks

  • Standard program for unbilled  sales orders and purchase order items

    Can anyone advice,  is there any standard program which gives the unbilled sales order and purchase order items.

    Hi,
    Use the T.Code VA05/VA05n for list of all the sales order s which are open.
    Take T.Code:VA05N
    Select the option "Open Sales Orders".
    Execute.
    It will give you all the orders which are open.
    The standard program for this is:"SD_SALES_ORDERS_VIEW".
    The same you can also get by using the T.Code VF04.
    In this if your scenario is "Order related",then select the option "Order related".
    Else if it is "Delivery related",then select "Delivery-related".
    Execute.
    The standatd program for this is:"SDBILLDL".
    T.Code:VF05/VF05n is for list of billing documents.
    Regards,
    Krishna.
    Note:Pls search the forum.

  • Is there any standard program for vendor's ageing

    Hi friends,
                There is a standard program for customers ageing(s_alr_87012178).Now i have a requirement for vendors ageing......Is it possible ?
    helpful answer is rewarded.
    Thanks & Regards,
    Anand kumar.

    Hi,
    Check in the following,
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    <b>Reward if helpful.</b>

  • How to use copy of standard program for direct input in LSMW

    currently we're using object 0085 Purchase Orders and and method 0001 for standard direct input, which is processed with program RM06EEI0
    now I want to set an additional flag and avoid creating it by means of BUS PurchaseOrder.CreateFromData1 method (coz the structure is quite different and more complex).
    so my question is now how can i assign a copy of the standard program for processing?
    for better understanding I've attached a screenshot of the according screen
    [img]http://img71.imageshack.us/img71/1558/lsmwcr6.jpg[/img]

    ok, solution was to maintain table SXDA1 (SAPDXfer: Data Transfer Objects and Sub-Category).
    modify entries for DXPRG, DXPR1 and LOADPRG with custom program names

  • F.13 is a standard program for automatic clearing?

    f.13 is a standard program for automatic clearing? can i include plant code to the standard program.....and it is used for display clearing......need information?

    HI,
    F.13 is a Stanndard program for Automatic clearing as you rightly siad. This is wholely dependent on the settings that you make in OB74 which is matching criteria.
    Let me take an examloe and explain.
    Lets say you have a customer invoice for  1,00,000/-. The customer has given 80,000/- once and 15,000/- once and the balance 5,000/- the company has issued a Credit Note.
    If this is a single transaction in a year you may wonder why this F.13 is used. However in practice there will be many transactions per day it self and advising a business proces of F-32 account Clear is not a good practice as the user is loaded with transactions.
    Hence You will be taking this as a periodic process and clearing automatically is advised using F.13.
    For the system to understand you will be giving the matching criteria in OB74.
    So when ever you run this program, program checks for matching Amounts in Dr and Cr sides with the matching feilds given in OB74
    The uncleared items need attention which may or may not be processed manually,
    For GR IR clearing also you can use this transaction and any open item manged account as longas the matching criteria is confiured.
    I don't think you can use Plant code in this.
    Reward points if useful.
    Sarma

  • Standard  program for leave updation

    HI all,
    Is there any standard program for auto updation of leave quota.
    Regards
    janhavi

    see
    after udateing infotypes 2001 and 2006
    u need to run the above programmes to leave updatation
    the response was given by snatosh and vinod

  • Standard program for Weight up Ftable and Dim. Fable

    Hi experts,
    Which is the standard program for weight up the Fact table and Dimension table for an InfoCube?
    I will assign point to every answer.
    thanks a lot in advance
    Best regards
    Filippo

    Hi Paolo,
    Thanks for the info, What I really need is to know if the F Table and the Characteristic in an implemented InfoCube 's star schema are balanced eachother. I know that there is a SAP standard program to do that but I can't find it.
    best regards
    Filippo

  • STANDARD PROGRAM FOR SMARTFORMS

    hi all,
    i have problem in finding standard program for <u>std. PO Smartforms</u> i.e /SMB40/MMPO_A (purchase order).
    i have checked in table TNAPR. i dint find. can anyone help finding the std. program name.
    regards,
    thanks in advance.

    Hi,
    Yes, there is standard smartform for PO (pre-configured forms) but you have to import package :/SMB40
    PO Form: /SMB40/MMPO_L
    Print Program: /SMB40/FM06P
    See the note 595812: it explain how to download the preconfigured smartforms.
    Anyway this is an extract of that note:
    Detailed information can be accessed at the site:
    http://service.sap.com/preconfiguredforms OR
    http://service.sap.com/smb/development/preconfiguredforms.
    To download preconfigured smartform package, please:
    1. Go to http://service.sap.com/installations, select tab "download".
    2. On the right hand side screen, locate navigation tree node
    SAP Software Distribution Center->Download->Installations and Upgrades->
    Entry by Application Group.
    3. In the main window (right hand side), follow the path
    SAP Best Practices->Best Practices for mySAP All-in-One-> PRECONFIGURED
    SMART FORMS, you can find available preconfigured smartform versions.
    Here you can also download the PO smartform.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Standard programs for smartforms

    Hi experts
       How can we find standard programs for smart forms

    Hi,
    Up to  4.7 version there are no standard smartforms. But you can find standard smartforms from 5.0 version onwards.
    Go to tcode smartforms then take f4 help you can get all list of smartforms there you can find them.
    Thanks
    sarada

  • What's the standard program for smartform : HR_ECM_CRS

    Hi Friends
    what's the standard program for smartform : HR_ECM_CRS?
    <REMOVED BY MODERATOR>
    Regards,
    Sree
    Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:14 PM

    hi
    good
    check this link, hope this would help you to solve your problem.
    http://saphelpbykevin.blogspot.com/2006/09/compensation-review-statement-confusion.html
    thanks
    mrutyun^

  • Where can we find the standard program for scripts and smartform for vl02

    where can we find the standard program for scripts and smartform for vl02
    regard,
    anil

    If it is a standard Script Output see that all config in NACE tcode was done correctly and in the Application document the output type was properly defined and attached to a medium, partner and all communication related things like printer name, when to print the output and number of messages etc are entered in the document
    the go to the related application Tcode
    (for sales order goto VA02 or VA03)
    (delivery -VL02N or VL03N)
    for Invoice VF02 or VF03
    for PO -goto ME9F
    enter doc number, Issue Output to -> screen/printer
    then see the output
    step 1 : copy the z layout into testing client thru SCC1.
    step2 : go to se71 and check modified layout.
    step3 : if it is under logistics.. go to TCODE "NACE".
    u will see various applictions for each business process.
    there u have configure ur related layout according to requirments,
    for example u consider for Request fo Quatation..
    there is APPLICATION called "EA"
    click and enter into it. configure it with ur requirments, for help consult with ur functonal consaltant, and save it.
    step 4 : goto tcode ME9A for requst for quatation(RFQ).
    step 5 : enter test data avalable and check it with message display.
    it is same for other applications like Contract agreament --> ME9k
    invoice --> vl02n
    and goes on..
    Reward points for useful Answers

  • Standard programs to upload / update infotypes

    Please provide updates for this question:
    What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
    I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
    before going ahead with BDC .
    Thanks
    Rohan

    Please provide updates for this question:
    What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
    I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
    before going ahead with BDC .
    Thanks
    Rohan
    Hi Rohan ,
         you can update you infotype using 'HR_INFOTYPE_OPERATION' function module .
    1)   transfer all your excel data  into internal table .
    2)   loop at internal table
    3)  fill all the required field of that infotype .
    4) lock table
    5) call that functuion module .
    6) unlock table
    for this fallow the below code...
    DATA: it_p0169 TYPE STANDARD TABLE OF pa0169 WITH HEADER LINE.  (make internal table according to your requirment)
    DATA: wa_p0169  TYPE p0169.
    LOOP AT it_file
          v_eeamt = it_file-pct_gross.
    *Pre-Tax Contribution Percentage
          v_eepct = v_eeamt / 10.
          v_begda = it_file-datchngd .
    *Appending into header (these all are the required filed in my case )
         it_p0169-eeamt =  v_eeamt.
          it_p0169-begda =  v_begda.
          it_p0169-eepct =  v_eepct.
          it_p0169-bplan =  v_bplan .
          CLEAR wa_p0169.
          MOVE-CORRESPONDING it_p0169 TO wa_p0169.
          wa_p0169-INFTY = '0169'.    (not forget to pass infotype no in the header )
    CONSTANTS: c_action_ins  TYPE pspar-actio VALUE 'MOD',   (it can be also COP for Copy , DEL for Delete , DIS for Display , MOD to Change , LIS9 to  Delimit , INS to Create )
               c_infty_0169  TYPE prelp-infty VALUE '0169'.
    DATA: it_return  TYPE bapireturn1. (as it is )
    DATA: it_return  TYPE bapireturn1.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE enqueue_FAILED.
      ENDIF.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = c_infty_0169
        number                 = p_wa_0169-pernr
        SUBTYPE                = '401K'
        OBJECTID               =
        LOCKINDICATOR          =
        validityend            = p_wa_0169-endda
        validitybegin          = v_begda1
        RECORDNUMBER           =
        record                 = p_wa_0169
        operation              = c_action_ins
        TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               =
        VIEW_IDENTIFIER        =
        SECONDARY_RECORD       =
      IMPORTING
        return                 = it_return.
       if it_return-MESSAGE is not initial .
         delete it_file .
       endif.
    commit work .
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE DEQUEUE_FAILED.
      ENDIF.
    Enjoy
    Priyank

Maybe you are looking for

  • ASA 5505 Problem ACL

    Dear All, I have a problem with the configuration of the ACL of my ASA 5505 router. However, the syntax seems okay access-list 121 extended deny icmp 192.168.0.0 255.255.255.0 any Thanks for your help

  • How can you  automatically disable data on a phone when the user hits the limit?

    One Verizon phone rep said she would take care of it for me.  Obviously that didn't happen so Verizon robbed me of $50 in overage fees. Next Verizon store rep told me to go online and do it.  Still haven't figured it out.  So, anyone know the answer?

  • Making GUI in servlet

    i have made an application and its GUI using JFrames. The GUI is somewhat like a text editor PLUS option to execute my program on the text entered by the user. also, it has a window which shows the output/error messages. now, i want to web enable it.

  • RH_OBJID_REQUEST question

    Hi, i must use FM RH_OBJID_REQUEST for a F4 help field. This FM must display the organisationnal structure, but i would like disable some objects ; this object should be displayed but disabled, so can i do this with this FM ? if yes, can you give me

  • Sticky Bit - Problem...

    Hello, I have one thing to ask, to clarify... Some weeks ago after a system migration from win/sql to linux/oracle (and after an oracle upgrade from 10.2.0.4 to 11.2.0.1), we faced an error during DB13, the job Scheduled Update Statistics finished wi