Add billing date in existing prog when goes through VF01

How do I add the billing date as sy-datum in my program that uses BDC to create billing documenst for the sales order in the output . I would like this to take te billing date as sy-datum. I know if if I add the billing date as todays date while generating biling documenst for multiple selections of sales order it will process and create a billing doc for it, right now which si not happening as billing date is missing. I want to add the billing date in BDC. Could I get some help please. In the below case only for p_rdos.
*&      Form  process_vf01
*       Call transaction VF01 and fill screen table with order values
FORM process_vf01.
  DATA: ln_index(2) TYPE n,
        lc_field(20) TYPE c,
        lc_fkart TYPE vbrk-fkart,
        li_lines TYPE i,
        lc_msgtxt(99) TYPE c,
        lwa_bdcoptions TYPE ctu_params,
        lwa_mess LIKE LINE OF it_bdcmess,
*        lc_date like vbrk-fkdat.
        lc_date like sy-datum.
  REFRESH: it_bdcmess.
  lwa_bdcoptions-dismode = cns_mode.
  lwa_bdcoptions-updmode = cns_upd.
  CASE 'X'.
    WHEN p_rdff.
      lc_fkart = cns_fkff.
    WHEN p_rdos.
      lc_fkart = cns_fkos.
      lc_date = sy-datum.
  ENDCASE.
  DESCRIBE TABLE it_vbeln LINES li_lines.
  REFRESH: bdc_tab.
  PERFORM update_bdc USING: 'X' 'SAPMV60A'    '0102',
                            ' ' 'BDC_CURSOR'  'RV60A-FKART',
                            ' ' 'RV60A-FKART' lc_fkart,
                            ' ' 'BDC_OKCODE' '/00'.
  LOOP AT it_vbeln INTO wa_vbeln.
    ln_index = sy-tabix.
*   Up to the second delivery of the BDC add the Delivery to the screen,
*   after that click the More Documents for every entry.  logic changed for DEVK902353
*   changed again in added for every line DEVK910604
    CASE ln_index.
      WHEN 1.
        CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
        IF li_lines = 1.
          PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
        ELSE.
          PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
                                    ' ' 'BDC_OKCODE' 'FKAN'.
              ENDIF.
      WHEN OTHERS.
*        IF p_rdos  <> 'X'.
        CONCATENATE 'KOMFK-VBELN' '(2)' INTO lc_field.
        PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
                                  'X' 'SAPMV60A'   '0102',
                                  ' ' 'BDC_OKCODE' 'FKAN'.
    ENDCASE.
  ENDLOOP.
* VF01 will go to a different screen if only one line selected
  IF li_lines EQ 1.
    PERFORM update_bdc USING: 'X' 'SAPMV60A' '0104',
                              ' ' 'BDC_OKCODE' '=SICH'.
  ELSE.
    PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
                              ' ' 'BDC_OKCODE' '=SICH'.
  ENDIF.
  CALL TRANSACTION 'VF01'  USING bdc_tab OPTIONS FROM lwa_bdcoptions
                          MESSAGES INTO it_bdcmess.
  WRITE: / 'BDC Messages:'.
  SKIP.
  LOOP AT it_bdcmess INTO lwa_mess.
    CALL FUNCTION 'RH_MESSAGE_GET'
      EXPORTING
        arbgb             = 'VF'
        msgnr             = lwa_mess-msgnr
        msgv1             = lwa_mess-msgv1
        msgv2             = lwa_mess-msgv2
        msgv3             = lwa_mess-msgv3
        msgv4             = lwa_mess-msgv4
      IMPORTING
        msgtext           = lc_msgtxt
      EXCEPTIONS
        message_not_found = 1
        OTHERS            = 2.
    WRITE: /5 lc_msgtxt.
  ENDLOOP.
ENDFORM.                    " process_vf01

u can chk this code
data:  wa_vbsk TYPE vbsk,
wa_vbsk-smart = c_f.
APPEND wa_komfk TO it_komfk.
        CLEAR wa_komfk.
        CALL FUNCTION 'RV_INVOICE_CREATE'
                EXPORTING
*                 delivery_date             = 0
                 invoice_date              = v_date "ur current date
*                 invoice_type              = '    '
*                 pricing_date              = 0
                 vbsk_i                    = wa_vbsk
                 with_posting              = 'D'
*                 select_date               = 0
                 i_no_vblog                = ' '
                 i_analyze_mode            = ' '
                 id_utasy                  = ' '
                 id_utswl                  = ' '
                 id_utsnl                  = ' '
                 id_no_enqueue             = ' '
                 id_new_cancellation       = ' '
**             IMPORTING
*               VBSK_E                    =
*               OD_BAD_DATA               =
*               DET_REBATE                =
                TABLES
                  xkomfk                    = it_komfk
                  xkomv                     = it_komv
                  xthead                    = it_thead
                  xvbfs                     = it_vbfs
                  xvbpa                     = it_vbpa
                  xvbrk                     = it_xvbrk
                  xvbrp                     = it_vbrp
                  xvbss                     = it_vbss
*               XKOMFKGN                  =
*               XKOMFKKO                  =
Edited by: kartik tarla on Apr 3, 2009 10:28 AM

Similar Messages

  • When going through photos how can i see if they are in an album

    when going through photos how can i see if they are in an album

    ~Not quite the same but you can find all the images that are not in an album (or vice versa) with a Smart Album.
    File -> New Smart Album
    Album -> is not -> Any

  • When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    When going through the download process with social monkee and getting to the point of adding it to firefox I get the following message: 'Social Monkee could not be installed because firefox cannot modify the needed file'. How can this be fixed?

    That is usually caused by a missing unpack directive (&lt;em:unpack&gt;true&lt;/em:unpack&gt;) in the file install.rdf of that extension.
    See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
    -----

  • My iphone 5 is in disabled status but when going through the recovery process it asks for the SIM pin but I cannot access the screen as the phone wont connect to the activation server not the screen to unlock the SIM. What do I do?

    My iphone 5 is in disabled status but when going through the recovery process it asks for the SIM pin but I cannot access the screen as the phone wont connect to the activation server not the screen to unlock the SIM. What do I do?

    That's usually a symptom of a phone that was hacked or jailbroken to unlock it.

  • Billing  Date-User exists

    When creating the billing document the billing date should pick up the Actual Goods Issue Date in the delivery document, if the financial period is not closed. And if the period is closed then it should pick up the current date. The system should prohibit the manual changing of the billing date by the user.
    Please suggest me which user exit to be used? and how complex is the issue? or is there any work arround?
    Right answers will be rewarded

    Hi VImal,
      As per standard SAP, If invoice dates are defined for the customer, the system proposes the  billing date from the invoice date calendar. If no invoice dates are
    agreed, then the actual goods issue date is formed on the basis of  delivery related billing. In order related billing, the billing date of  the order forms the basis of the billing date.
    If you are billing services, the system proposes the date of services  rendered. You can change the date manually in the sales document.
    You can check the program SAPMV60A. In this programme there are different funtion modules like RV_INVOICE_CREATE', which controls the Billing date. Check with you ABAPer to find out the possibility of realizing your requirement.
    Hope this will help you
    Regards,
    Ravikiran Pochiraju

  • My billing date has changed, is it going to permanently be the 30th of the month?

    My billing date has changed due to the new billing system. The letter I recieved shows August 30, but does that mean every month it will be the 30th?

    Hi eric1742,
    I apologize for the confusion. Yes this will be the permanent date. Your new payment due date will be at least 21 days after your statement date each month. If this is a different due date than you had previously, and you pay your monthly bill automatically via our automatic bill payment service, then your payment will be withdrawn from your bank account on the new date as per usual. If you pay your bill automatically via your bank, you will need to inform the bank of your new payment due date. Also, your new account number will be on your August 2015 bill. If you use electronic banking to pay your Comcast bill, please remember to update your banking information for your new Comcast account number to avoid a delay in the posting of your payment. If you have further questions or concerns please let me know.

  • RoboHelp Server 8 Not Displaying All TOCs When Going through the Engine

    Hello,
    We recently upgraded from X5 to X8 and imported and converted our X5 project to X8 without any problems. After our conversion, we are having TOC issues.
    Here is our issue. Not all of our TOCs are displaying when we veiw our project through the engine, but if we view the project directly (without) going through the engine all of our TOCs display correctly. I've tried creating a new TOC and checking the Copy existing Table of Content box and deleting the old TOC and that did not work. I removed the following characters in the TOC (&, <, >,) and that did not work. I also tried deleting a book with topic pages within the book and re-creating the book and adding the topic pages in the book and no solution. It seems like i've tried everything to resolve our issue and nothing has worked so far.Our books have topic pages linked to it.
    I've searched the forums and i have not seen anyone else with the same issue. Any help would be greatly appreciated.
    Thanks

    Hi Ian,
    Just zip them up and send them to me in a private message.
    Tulika.

  • Date field automatcailly changing when tabbing through other scripted fields

    I have a form with a datetime field. The object is readonly. I format the field with javascript as yyyymmddhhmmss as a tracking number for the form. When tabbing through other fields with javascript the value changes to the current date time, like the code is being executed each time a scripted field is entered.
    Any ideas how to prevent that? I just want the code to execute when the form is opened.
    ----- form1.sbfDirect_Pay.dteCurrentDate::ready:layout - (JavaScript, client) ----------------------
    // Current Date in short-style date format.
    // $.rawValue = num2date(date(), DateFmt(1, "))
    var varCurrentTime = new Date();
    var varYear = varCurrentTime.getFullYear();
    var varMonth = varCurrentTime.getMonth() + 1;
    var varDay = varCurrentTime.getDate();
    var varHour = varCurrentTime.getHours();
    var varMin = varCurrentTime.getMinutes();
    var varSec = varCurrentTime.getSeconds();
    if(varMonth<10) varMonth = "0" + varMonth;
    if(varDay<10) varDay = "0" + varDay;
    if(varHour<10) varHour = "0" + varHour;
    if(varMin<10) varMin = "0" + varMin;
    if(varSec<10) varSec = "0" + varSec;
    // $.rawValue = year + "" + month + "" + day + "" + hour + "" + min + "" + sec;
    dteCurrentDate.rawValue = varYear + "" + varMonth + "" + varDay + "" + varHour + "" + varMin + "" + varSec;

    I think I just answered my own question. The code was in the layout:ready event. This area is executed each time the layout is modified. I moved the code to form:ready event.

  • Battery flattens when going through Airport Securi...

    On a recent trip abroad whilst taking my Nokia 5230 for the first time I noticed once it passed through the security scanner, with the phone switched on, when I went to use it the battery was completely flat.  I had only charged it the night before.  Exactly the same happened on my return journey.   Obviously the phone was not on my person but in my hand luggage in the tray provided.
    Fortunately I had my N78 with me and this was unaffected.  Next time I go abroad I'll switch on my 5230 before it goes through the security scanner.  Just wonder if that will make any difference.  Has this happened to anyone else?

    You would perhaps expect an increase in power consumption of device trying to maintain signal within airport confines but not to this degree.
    Happy to have helped forum with a Support Ratio = 42.5

  • There is a dead area in the center of the display.  Display is normal on both sides.  Cursor will cross it but disappears when going through it.  Has anyone seen this?

    I have a dead area in the center of the display in the form of a vertical line about 1/2 inch wide.  The cursor disappears when passing through it but is visible on both sides.  Display is normal on both sides.  Anyone seen this before?

    Might want  to run the Apple Hardware Test just in case.
    Intel-based Macs: Using Apple Hardware Test

  • Saving Apple pw when going through App Store?

    I keep my password rather complicated when downloading through the app store on my ipod touch 4g and just wondering if there's a way to keep the password auto-stored like it does with my wifi password.

    No.  It only saves the password for about ten minutes then you have to reenetr the PW.  It is a security feature.

  • Add Curent Date & Time to PDF when Printed

    This is my first post so please excuse any ignorance.
    Basically we are in the process of creating electronic copies of SOP’s and putting them on our file server for all staff to access. Due to regulations, when these SOP’s are printed they would need to have the current date and time in which the SOP was printed, ideally like a watermark faded diagonally across the page but even if it was something on the bottom or top this would also do the trick.
    It should read "Only Valid on Date of Printing - <Current Date><Current Time>
    Could somebody please tell me if something like this is possible by incorporating JavaScript into the PDF.
    Any assistance I would be grateful.
    Thanks.
    Keith.

    GKaiseril
    Thank you so much, I got it and it worked perfect courtesy of "hardDriver2". For anybody else who is looking to do this see below.
    // Description: This script adds a text field to the left side of all
    // pages. It also sets a doc level JavaScript that executes when the
    // document is printed and fills the field with date.
    // Add field to each page of form
    var inch = 72;
    for (var p = 0; p < this.numPages; p++) {
        // create rectangle quads for field
        var aRect = this.getPageBox( {nPage: p} );
        aRect[0] = 0.0;
        aRect[1] = 0.0;
        aRect[2] = 26.0;
        aRect[3] = 792;
        // now construct text field to fill with date information
        var f = this.addField("PrintField", "text", p, aRect )
        f.delay = true;
        f.textSize = 16;
        f.textFont = font.HelvB;
        f.textColor = color.black;
        f.alignment = "center";
        f.readonly = true;
        f.print = true;
        f.hidden = true;
        f.delay = false;
    for (var p = 0; p < this.numPages; p++) {
        // rotate the text 
        var f = this.getField("PrintField." + p)
        f.rotation = 90;
    // Adds a doc level script to populate text field when doc prints from
    // Acrobat or the free Adobe Reader. Note: the '\r' character represents a
    // carriage return.
    var myWillPrintScript = 'var f = this.getField("PrintField"); \r' + 'f.hidden = false; \r' + 'var d = new Date(); \r' + 'var year = d.getYear()+1900; \r' + 'f.value = "THIS DOCUMENT ONLY EFFECTIVE ON " + (d.getMonth()+1) + "/" + d.getDate() + "/" + year; \r'
    var myDidPrintScript = 'var f = this.getField("PrintField"); \r'
                               + 'f.value = ""; \r'
                               + 'f.hidden = true; \r'
    // Now set the scripts to execute on the Will/Did Print events.
    this.setAction("WillPrint", myWillPrintScript);
    this.setAction("DidPrint", myDidPrintScript);

  • Append data to existing tables when performing an IMPORT

    Hi,
    I am using oracle 10g.
    I have a dump for a table employees from schema A which i need to import into a schema B.
    The employees table already exists in schema B.
    I want to append the data from the dump to the existing rows in schema B.
    Which parameter do we need to set to do this ??
    Thanks.
    Edited by: Amm-K on Nov 24, 2008 12:37 PM

    If your and my definition of append is the same, a normal import would fail to import the rows which already exist in target table but would import the rows which do not exist in the target table (which is APPEND). So you don't need to specify any special parameter in this case.
    If you need to modify the existing rows with the data in the dump file, import does not provide such a option.

  • How to add Project 365 to existing Office 365 subscribed through GoDaddy

    We subscribe to Office 365 through our GoDaddy account.  Is there a way to add Project 365 to this subscription?  If not (meaning we have to go through Microsoft) is there a way to merge these accounts?  It appears we would need a different
    sign in to access Project from Office.
    Thanks,

    You should be able to add this as the global administrator. If you go to the App Launcher and select Admin, under Billing, there is a subscription link. Click there. The Add new subscription option is at the top.
    Treb Gatte, Project MVP |
    http://www.tumbleroad.com |
    @TumbleRoad

  • When going through open tabs, they will randomly stop loading correctly, instead causing the windows to stack on each other.

    The pages will start to merge into each other, or something, usually with a delay after trying to get to a different tab. It's realy hard to explain what I mean, so look at the screen shot. This time it was a bit cute due to what parts of the pages I was on merged together, but still really disruptive.
    Once it starts happening, Firefox becomes unusable until I shut down the process with task manager. What can I do to make this all stop?

    Please make sure that all of your plugins are up to date.
    *[https://www.mozilla.org/en-US/plugincheck/]
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    #Open Firefox ''Options'' window (''Preferences'' on Mac or Linux) as follows:
    #* In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]] and select ''Options'' for Windows or ''Preferences'' on Mac or Linux.
    #* In Firefox 28.0 and previous versions, click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    #In the Firefox Options (or Preferences) window, click the ''Advanced'' tab, then select ''General''.
    #In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    #Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • How to RollUp Amount data based on SAP BI GL Account to BPC Grp GL Account

    Hi All, Initial data format EXTERN            INTERNAL         AMT GL Acco                 Grp GL  ACC           AMT 0200001              100000          0100 1000000              100000          0200 1000010              100000          0300 1000011

  • HP printer issue with Mac OSX 10.5.8

    How do i set up/connect HP officejet 4635 printer to Mac  OSX 10.5.8

  • Calendar published with iCal not available in .Mac?

    Hi! I have published a calendar with iCal successfully and without any issues - this is a home calendar and so has a limited amount of dates, events etc. However I recently imported my work calendar (which has large amounts of data) and I also publis

  • About YouTube videos quality

    HI, I I am using I pad 4 the generation. When I open YouTube    video quality is very low. Even hd videos. My network is also 4G. Why. It is like this  can any one help me regarding this. But I tried in another. Tabs like Samsung. Videos. Are very go

  • Move Itunes media from external drive

    Itunes media file located on failing external drive. Need to move time machine backup copy (on a different external drive) back to mac hd. Advice on this procedure please