Upload value to SD billing VBRK-XBLNR

Hi All,
I need to develop a program to upload a value to the Reference(VBRK-XBLNR) of SD billing and related FI doc. Do any one have ideas on this requirements? Any function module I can used? Thanks in advance.

Hi Seshu, Thanks nad it really works.

Similar Messages

  • Upload Values to FB50

    My requirement is to upload values to Transaction FB50 . Could any help me in getting the Method I have to use in  LSMW?..
    Thanks you

    bdc
    Re: Custom BAPI for FB50 or FB50L  for Parking FI document..
    else bapi
    u can use the bapi 'BAPI_ACC_GL_POSTING_POST'.
    and i think you can also write a bdc in your own bapi too.
    Look at the sample code....................
    loop at podoc_it.
    clear: offset_it, it_hdr, it_gl, it_curr.
    refresh: it_hdr, it_gl, it_curr.
    read table offset_it with key bukrs = podoc_it-bukrs
    saknr = podoc_it-hkont.
    Header Data
    it_hdr-comp_code = podoc_it-bukrs.
    it_hdr-doc_date = sy-datum.
    it_hdr-pstng_date = sy-datum.
    it_hdr-doc_type = podoc_it-blart.
    it_hdr-ref_doc_no = bkpf_it-xblnr.
    it_hdr-username = sy-uname.
    it_hdr-bus_act = 'RFBU'.
    IF podoc_it-shkzg = 'S'.
    First Item
    Account number
    it_gl-itemno_acc = '1'.
    it_gl-gl_account = podoc_it-hkont.
    it_gl-item_text = podoc_it-sgtxt.
    it_gl-fis_period = v_monat.
    it_gl-fisc_year = v_gjahr.
    it_gl-acct_key = 'A00'.
    APPEND it_gl.
    Second Item
    Account number
    it_gl-itemno_acc = '2'.
    it_gl-gl_account = offset_it-osaknr.
    it_gl-item_text = podoc_it-sgtxt.
    it_gl-fis_period = v_monat.
    it_gl-fisc_year = v_gjahr.
    it_gl-acct_key = 'A00'.
    APPEND it_gl.
    Set amount
    it_curr-itemno_acc = '1'.
    it_curr-currency = podoc_it-waers.
    it_curr-amt_doccur = podoc_it-wrbtr.
    APPEND it_curr.
    it_curr-itemno_acc = '2'.
    it_curr-currency = podoc_it-waers.
    it_curr-amt_doccur = podoc_it-wrbtr.
    it_curr-amt_doccur = it_curr-amt_doccur * -1.
    APPEND it_curr.
    ELSE.
    First Item
    Account number
    it_gl-itemno_acc = '1'.
    it_gl-gl_account = podoc_it-hkont.
    it_gl-item_text = podoc_it-sgtxt.
    it_gl-fis_period = v_monat.
    it_gl-fisc_year = v_gjahr.
    it_gl-acct_key = 'A00'.
    APPEND it_gl.
    Second Item
    Account number
    it_gl-itemno_acc = '2'.
    it_gl-gl_account = offset_it-osaknr.
    it_gl-item_text = podoc_it-sgtxt.
    it_gl-fis_period = v_monat.
    it_gl-fisc_year = v_gjahr.
    it_gl-acct_key = 'A00'.
    APPEND it_gl.
    Set amount
    it_curr-itemno_acc = '1'.
    it_curr-currency = podoc_it-waers.
    it_curr-amt_doccur = podoc_it-wrbtr.
    it_curr-amt_doccur = it_curr-amt_doccur * -1.
    APPEND it_curr.
    it_curr-itemno_acc = '2'.
    it_curr-currency = podoc_it-waers.
    it_curr-amt_doccur = podoc_it-wrbtr.
    APPEND it_curr.
    ENDIF.
    check posting
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    EXPORTING
    documentheader = it_hdr
    TABLES
    accountgl = it_gl
    currencyamount = it_curr
    return = t_result.
    LOOP AT t_result WHERE ( type = 'E' OR
    type = 'A' ).
    EXIT.
    ENDLOOP.
    IF sy-subrc <> 0.
    REFRESH t_result.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = it_hdr
    TABLES
    accountgl = it_gl
    currencyamount = it_curr
    return = t_result.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    move: podoc_it-bukrs to doc_it-bukrs,
    podoc_it-belnr to doc_it-belnr,
    podoc_it-gjahr to doc_it-gjahr,
    podoc_it-shkzg to doc_it-shkzg,
    podoc_it-hkont to doc_it-hkont,
    offset_it-osaknr to doc_it-osaknr.
    ENDIF.
    Print Message
    LOOP AT t_result.
    WRITE: t_result-message.
    Get Number
    IF t_result-id = 'RW' AND
    t_result-number = '605'.
    belnr = t_result-message_v2(10).
    gjahr = t_result-message_v2+14(4).
    ENDIF.
    move: belnr to doc_it-obelnr,
    gjahr to doc_it-ogjahr.
    ENDLOOP.
    append doc_it.
    clear: doc_it, podoc_it.
    endloop.
    loop at doc_it.
    write:/ doc_it-bukrs,
    doc_it-belnr,
    doc_it-gjahr,
    doc_it-shkzg,
    doc_it-hkont,
    doc_it-osaknr,
    doc_it-obelnr,
    doc_it-ogjahr.
    endloop.
    Look at the example code for that.......
    Re: BAPI - - POINTS guarenteed !!!!

  • In BDC VA02 i am uploading header details in BILLING PLAN tab.

    Hi Friends,
    In BDC VA02 i am uploading header details in BILLING PLAN tab.
    I am having sales order no in flat file.
    While i am clicking BILLING PLAN tab its showing 1 POPUP screen for Milestobe For billing plan (INPUT AS NETWORK NO).
    Some sales order nos this popup is not coming.
    How to code this bdc?

    CLOSED

  • Excel Planning Upload - Values are equally distributed

    Hello Gurus,
    I am doing Excel planning upload using KP06 for Cost Center and Cost Element planning. The issue I am having is the upload is not taking individual values of each period during the upload. It is only taking one period value and spreading equally across all 12 periods. I used distribution keys 0 and 2. But no use. I see there are few questions on this issue. But I could not get the right answer. Can any of you please guide me as to how to upload values for each period?
    Thanks in advance.
    Venkat

    Not sure how you define your File Description.  Try this:
    One column per month, e.g. column C =  month1; column D = month2;... etc.
    One row per cost element

  • VF01 User Exit for VBRK-XBLNR

    In my client i have requirement as I want to display number ranges for VBELN and XBLNR . But VBELN purpsoe we used RV60AFZZ program and FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN. This is calling in Function module RV_INVOICE_DOCUMENT_ADD  inside this we used perform userexit_number_range using da_numki.
    But for XBLNR purpose i did not get the exit please suggest me how to resolve this . Please suggest me exit for this.

    Hi
    You can handle it with VOFM subroutines in copy rules (tcodes VTFA and VTFL) in data VBRK/VBRP. For this you can copy the VOFM that you are using and add the coding:
      vbrk-xblnr = 'string'.
    See Note 327220 - VOFM function and its objects for a further information.
    If you only want to transfer it to FI, see Note 301077 - User exits for the interface to accounting
    Regards
    Eduardo
    Edited by: E_Hinojosa on Mar 25, 2011 3:36 PM

  • Defining values on SD Billing Plan during order entry

    Scenario-
    User enters a sales order with 10 line items.
    Based on specific material master information (material group, etc), items will be split on two billing plans.
    For example, lines 1, 3, and 10 would go on the first billing plan at 5% of the price.
    The second billing plan would have the remaining 95% for lines 1, 3, and 10.... and 100% for lines 2, 4, 5, 6, 7, 8, and 9.
    I can manually go through this process.  Is there a way to automate?  I see many user exits (old SD style, CMOD/SMOD style, and BAdI style), but they do not appear to manipulate the percentages or fixed values of the billing plan. 
    Are there any enhancements to set values and define the billing plan details?
    Thanks!
    Norm

    Hi Erik,
    Another solution would be to define an output type in the order for sending the mail and to attach a requirement to the output type which will trigger the output only in case the billing block is changed.
    Regards,
    John.

  • SAP LSMW to upload values against characteristics in CL20N

    Morning,
    I need to upload values against characteristics in transaction code CL20N using LSMW.
    I have tried batch input recording method, but I receive the error below.
    The setup of characteristics is as follows:
    Plants – Upload all plants
    Purchasing Groups – Upload all purchasing groups
    Cost Centre – Upload cost centres specific to a strategy
    Value of PR – Upload PR value specific to a strategy
    Account Assignment - – Upload account assignments specific to a strategy
    Document Type – Upload document types specific to a strategy
    We have over 800 strategies and I need LSMW to upload the characteristics across all 800 strategies.
    I started creating a LSMW program by recording the transaction CL20N, but I get the following error:
    Error received "Runtime error DYNPRO_NOT_FOUND has occurred"
    Please advise or send me user guide on what I need to do to successfully create the LSMW.
    See attached screen shots.
    Many thanks,
    George

    Hi George,
    For Idoc CLFMAS / CLFMAS02: when updating nodes, add table for nodes OBTAB = 'PNODID'.
    For CL24N recording it is the same as other LSMW recodings, use selects if all data isn't available to fill needed recoding fields.
    Anete

  • Billing value in milestone billing exceeds net value.

    Dear all Sap Gurus,
                            I have a situation where in my Sales Order i booked 10 quantities for an item with item category Tao,with each having value of Rs 1000. So net value for the item is Rs 10000. Now in billing plan my client bills on value basis. an bills for 5 times.1st time billed for 3000,next time 4000,then 2000,then 3000,then 5000. Now the billing value for the item is 17000.My net value is Rs10000 and my billing value is 17000.this should not happen the billing value should not exceed net value.i am stuck with this concern.i require this on priority basis as reports will show this entry.looking forward to your help.

    Hi,
    I think, in milestone billing, value of TAO item is immaterial(as long as it is non-zero). Whatever value you have in the billing plan would get billed. So I dont see any issue in your case.
    Regards,
    Sridhar

  • How to get form upload value...?

    Hi, I'd like to know how to get form upload value?
    I have my initial page, index.cfm that has a upload input box
    (named "fileToUpload")that submits to action.cfm. In action.cfm I
    tried to get the value of the input by doing
    <cfoutput>#form.fileToUpload#</cfoutput> but instead I
    got a string like
    ("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
    I expected it to be the value that was in the upload input field
    (i.e. "E:\My Pictures\Flowers.jpg"). How do I get this?
    Thanks,
    noijet

    CFFILE.ServerFile
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000192.htm#2712126
    CFFILE ACTION=Upload variables
    File variables are read-only. Use the CFFILE prefix to
    reference file
    variables; for example, CFFILE.ClientDirectory. The File
    prefix is
    deprecated in favor of the CFFILE prefix.
    CFFILE.AttemptedServerFile
    CFFILE.ClientDirectory
    CFFILE.ClientFile
    CFFILE.ClientFileExt
    CFFILE.ClientFileName
    CFFILE.ContentSubType
    CFFILE.ContentType
    CFFILE.DateLastAccessed
    CFFILE.FileExisted
    CFFILE.FileSize
    CFFILE.FileWasAppended
    CFFILE.FileWasOverwritten
    CFFILE.FileWasRenamed
    CFFILE.FileWasSaved
    CFFILE.OldFileSize
    CFFILE.ServerDirectory
    CFFILE.ServerFile
    CFFILE.ServerFileExt
    CFFILE.ServerFileName
    CFFILE.TimeCreated
    CFFILE.TimeLastModified
    Ken Ford
    Adobe Community Expert
    "noijet" <[email protected]> wrote in
    message
    news:efc7gq$n7s$[email protected]..
    > Hi, I'd like to know how to get form upload value?
    > I have my initial page, index.cfm that has a upload
    input box (named
    > "fileToUpload")that submits to action.cfm. In action.cfm
    I tried to get
    > the
    > value of the input by doing
    <cfoutput>#form.fileToUpload#</cfoutput> but
    > instead I got a string like
    >
    ("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
    > I
    > expected it to be the value that was in the upload input
    field (i.e.
    > "E:\My
    > Pictures\Flowers.jpg"). How do I get this?
    > Thanks,
    > noijet
    >

  • Any user exit for updating VBRK-XBLNR when the billing is created?

    Hi all,
    I understand that in VTFL, there are 4 options for Reference number.
    But if i want it has a special value, how i can achieve it?
    Thanks,
    James

    Hi,
    See Note 301077 - User exits for the interface to accounting. I think that EXIT_SAPLV60B_001 is the right option.
    Regards
    Eduardo
    PD: althought perhaps USEREXIT_FILL_VBRK_VBRP in RV60AFZC fits better for your requirement.
    Edited by: E_Hinojosa on Jan 25, 2011 9:08 AM

  • Asset Initial Upload & reporting for uploaded value

    Hi SAP Gurus,
    I have uploaded the asset data using AS91 and also updated the GL values in OASV.
    The initial upload seems to be all correct in this manner since TB is tallying.
    However when i view the FA reports for the date of upload i am finding discrepancies in the Accumulated Depreciation values as shown in the report & the values uplaoded in AS91.
    Let me explain further, say for eg. the Cost of the asset was Rs. 10,000/- and Accumulated Depreciation as per legacy (as on date of upload) is Rs. 1858/-. However the actual Accumulated Depreciation should have been Rs. 1863 --- the diffference in legacy data was due to runding offs in previous months.
    Now when i uploaded the intial data i used the legacy figures i.e. Rs. 10,000 & Rs. 1858 since trial balance had to be tallied.
    However when i run reports in FA for the initial upload date, i find that the reports are showing the Acc. Depn (plan values) as Rs. 1863 & not the value that i have uploaded.
    What possibly is the reason for this ?
    Can anyone tell me any report to view only the uploaded information ?
    Points will be awarded for useful answers.
    Thanks & Regards
    Piyush Kothari

    Hi,
    There is an error appearing as below:
    "Report date 31.08.2007 is invalid for this report.
    Reports of this kind can only be run for the last day of the period in which the last depreciation posting run took place (or in a subsequent period) in the relevant fiscal year.
    It is not possible to run a report on posted depreciation in a fiscal year in which no depreciation posting run has yet taken place."
    My legacy upload date was 31.08.2007.
    When i run for 31.12.2007 (last period in the fiscal year for which dep. run has taken place) then the results are ok.
    But still i would like to assign some points to you since this would have helped indeed.
    Thanks
    Piyush Kothari

  • Uploading values for an image field in a web app. Nothing displays in layout.

    I've uploaded the values (using the import) for a field defined as an image in a web app. When I try to display the field, nothing shows up. The value correctly shows up when I look at Web App items after the upload / import. I've uploaded the same value in a text field, just to learn what was happening, and the text field displays the image just fine when added to the layout.
    I would like to use the image field type, as it's easier to correctly create the link when the web app is updated in the future.
    Here is what works in the layout: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_image thumb}" /></a>
    Note that {tag_image thumb} is a text field with the link stored in it. The value for each Web App Item which populates this field is a link to the image. (i.e. /Awards/139.jpg)
    Here is what I want to work: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_thumbnail image_value}" /></a>  , where {tag_thumbnail image_value} refers to a field defined as an image in the web app. It has the exact same value as {tag_image thumb}. I just copied the field values in the Excel spreadsheet (saved as .csv) when I uploaded it.
    It looks like the image field works fine only when I manually create it in the web app. If this is the case, using the upload capability disables any ability to use the image field type.
    Is there a workaround for this? Am I missing something?
    The page I'm working on is http://www.e-a-a.com/awards  When you view the source, you can see that the small thumbnail images are displaying just fine. (I'm using the text field). Whenever I substitute the image field name {tag_thumbnail image}, {tag_thumbnail image_nolink}, or {tag_thumbnail image_value}, the src value is always null.
    How do I fix?

    Hi there,
    To do it properly you need to resize the image. Prefably before you put it into BC. While you can for scale the image in CSS you do not want to do this. Why? Because the images are still very big and likely not optimised as they should be for the web.
    This means the page with these images will take a very long time to load for people, and people wont be to happy about that viewing your site.
    You need to use software such as photoshop if you have it or iphoto on a mac for example to edit, crop and size images before you upload them. If you do not have anything you can use free web based tools such as this one:
    http://pixlr.com/editor/
    You can also do this within BC itself in the file manager. If you click the image you can see options to resize it. The downside of that is that is done by pure math. It does not know what is in the photo and the results can make the image look squished etc.

  • Condition Values different fro Billing and Excise Invoice in some cases

    Hi All,
    Excise Invoice for domestic sales is having different condition values.
    I am scenerio like this when Billing doc manually VF01, excise Invoice in generated automatically and condition values
    were corrrect.But when I create Billing Document using BAPI in program, Excise Invoice is not generating,then
    we are running BDC for T-code J1IIN and creating Excise Invoice.Excise Invoice generated in second case (by BDC)
    is having wrong condition values.
    Can anyone explain why it is happing.Is there any user exist to copy Billing Doc condition values to Excise Invoice?
    Thanks in Advance ,
    Rayudu

    Thanks for you response Lakshimipathy.
    The above mentioned configurations were all ready done.Excise Invoice is getting generated when we create Billing Doc online.
    Problem here is Excise invoice is not getting generated automatically when Billing Doc is created by our program,so we were running BDC code to created excise Invoice.
    Condition values ( Duties :AED,Ecess,SHEcess) were getting calculated wrongly in excise Invoice which is created by running BDC code in program. But the Excise invoice which was created automatically while saving Billing doc manually is having correct condition values.  But the billing document condition values remain the same & correct for both.
    Regards,
    Rayudu

  • Pricing Net Value error in Billing Document

    Hi,
    I have to make only items in delivery to get copied into the billing document. I am able to get the header and item quantity, but I can't seem to copy the net value field at all. Can someone please help me with this?

    hi
    you are requested to chec the copycontrols of delivery document to billing document.
    please confirm.
    regards
    balajia

  • Net value issue in Billing document

    Hi,
    I have created a Intercompany Purchase order having total value 100 Euros.
    delivering plants create a delivery and posts goods issue.
    when they try to create Billing document with reference to this deivery in transaction VF01 , net value is appearing as Zero.
    so i am not able tp post billing document.
    I have assigend the pricinmg proceudre to respective division in OVKK.
    Can you tell me the reason behind this
    Thanks
    Akkshaya

    Hi,
    Check for the condition analysis in billing document, you will find why it is getting Zero and check for the item category too.
    Prase

Maybe you are looking for

  • How do I change the answers on the first purchase on this device verification page

    I don't remember filling out the first purchase on this device verification page answers how do I change the answers

  • Inheritance class not working

    Alright, so I'm supposed to write an inheritance class called MusicStore, which is inherited from the Store ( already written), and then the MusicStore method tests out the MusicStore. The MusicStore has the additional attributes of the number of tit

  • Please help me fix my ipod touch

    i boght a used ipod touch for my son, before giving it to him i erased all content and settings. now it only showes a picture of a cord and itunes symbal. please tell me i didnt wast my money.

  • Elements 11 Divide Scanned Photos Function, can it work with scanner cover open?

    I do a lot of scanning of where three items fit on the platen at one time. In the previous versions of Element this function worked, not automatically, but it worked with the cover open or closed, and it is much faster to scan with the cover open. Is

  • Fx5200

    Hello... I have a FX5200 -TD128 card, the one that only have a heat sink and not the fan. Beside the heat sink, there seems to be a plug for a fan... I was wondering it is OK to install a fan from another video card? I have a fan that is 12V and .5am