FB1S - Change Document Date

Hello ABAP experts
I've been asked by our client to make a modification when posting open items through txn FB1S (or in their case F-03).  When posting a document through this txn, the document date is set as equal to the posting date.  The users want to change this so that the document date equals the document date of the earliest open item to be posted.  I'm on an ERP Central Component 5.0, Basis version 640 and SP15 I think.
I've already written up a piece of code that I think should work, my problem right now is finding where exactly I can place it.  I tried first in customer exit SAPLF051, but the exit wasn't called (I set up breakpoints to check).  I'm currently trying in a Z implementation of BADi FI_HEADER_SUB_1300, but I have my doubts if it will work because the documentation does not mention txn FB1S and says the BADi is for changing the posting date, not the document date.
What other places exist where I might put the code in, such as substitutions, customer exits, etc?  Are those better places than the BADi I'm currently trying?  Thanks for your help in advance.
Regards,
Juan Ramos

Hello
Well, I was trying the substitution, but afterwards the user decided that they needed a completely new transaction to satisfy their business requirement.  I'm closing this thread so as to not leave it open.  Thanks again for the help, your suggestions will be something to keep in mind if another requirement like this comes up later.
Regards,
Juan Ramos

Similar Messages

  • Get change document data

    How do we get the change document data to be used in a workflow,
    I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this changed data.
    I have two options either i use an exit fm to trigger the mail or use a workflow to trigger tha mail, but how do i use the changed data that i get from cdhdr, i need to specify these fields in tha mail body.
    or if i choose to use an exit fm how to do it.
    regards,
    кu03B1ятu03B9к

    Hello,
    Create a new background method in the ZBO to get all the required details from CDHDR and CDPOS tables. Export them from the method as separate variables or as an internal table.
    Create a task in the workflow to execute this method before the sendmail step. Once the data is exported from the method, it is going to be available in the workflow container and so you can use the same in the SENDMAIL step.
    Hope this will help.
    Thanks,
    Samson

  • In CO11 Procedure to change document date

    Hi Experts,
                       I make production order confirmation through CO11 & GI / GR is done automatically.
    There is no option to change Document Date against GR/GI. Whenever i post entry in back date
    i can chage posting date but as there is no option of changing doc date i can't change.
    but my client wants to change that doc date along with posting date.
    plz suggest me regarding above.
    Harman

    Hi Ramesh..
    Ok..I agree with you..But there is a problem..When I make to send the PO to R/3 with the posting date in the past, In RZ20 there is a message '' the posting date is in the past'' this problem ocurring because the posting date in the past for PO. For ex: I create a PO in 04.08.08 and i try to send to R/3..but i can't send to R/3 becasue others problems ..the Po status change to ''Process Error'' . I fix the ''errors''  and i try to send the Po to R/3 again, I make this procedure in 05.08.08...but in purchase monitors show me up a message ' the posting date is in the past''
    How I can solve this? I need to send a PO with a past date to R/3. Can I change this configuration in R/3?
    Thanks

  • How to read service order change document data

    Hi Experts,plz help me,my requirement is to read the service order change document data,for that one i need to read from cdhdr and cdpos tables,so what i need to do.in input parameters for cdhdr table in place of ibjectclass and objectid what i need to pass.plz help me.

    Same for CDHDR and CDPOS.
    OBJECTCLAS = 'ORDER'
    OBJECTID = combination of client(AUFK-MANDT) + Order category(AUFK-AUTYP) + Order number (AUFK-AUFNR)
    for example
    OBJECTCLAS = 'ORDER'
    OBJECTID = '10030004001108788'
    Chaiphon

  • How to change Document Date on a Old Purchase Order

    We are having issues with about 57 purchase orders document date set at 12/31/2999 that is causing issues implementing Business Intelligence.  Is there a program that I can use to change these dates back to 12/31/2019 or something.  Due to calendar year 2999 not being setup BW can not bring this information into their queue.  I hate to do this via debug.  Are there any options.  Thank you for your help.
    Chandra

    According to SAP, since purchase order is a legal document they do not support the process of changing document number.  They suggested I do the change with debug and replace at my own risk.  In ME22N go to debug and type MEPO_TOPLINE-BEDAT.  The values for this field show up as 29991231 that should be changed to 20191231 and press F8, then save the purchase order.

  • Changing document date and posting date by SE16N

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    In which tables I have to fill in?
    Thanks
    Gandalf

    Hi,
    It is not advisable to change the document date and posting date. Instead, try to reverse the document and post the correct one.
    Regards,
    Jigar

  • CUA: User & Role Master Data Change Document

    Hi Team,
    I would like to know is there any way to find out CUA user master & role assignment change document data from CUA Central System & All Targets Systems.
    I am looking for user friendly tool similar to SUIM.
    I have looked into other methods of CUA change document tips and tools but it is not so fruitful to convenes my Audit team.
    FYI.  System Users (CUA_ADMIN) is not the user which i want to see in my change document window, i want to know actual security consultant ids within that.
    Kindly get back to me.
    Appreciate, for your response.
    Regards,
    Asif

    HI Matt:  Your understanding is correct for CUA Tier2 Setup.
    FYI.
    We have successfully configured trusted relationships between SAP Systems with the help of my BASIS & UNIX team.
    To do this:  We have performed following actions:
    u2022     Trusted System trust relationships for the RFC Connection has been maintained from the Central to the Child System and from All Child to Central System via transaction code SMT1.
    u2022     UNIX Database level trusted relationship entries has also been added with the help of UNIX Team
    u2022     RFC Destinations has been reconfigured with Current user option (SM59).
    u2022     For Security Administrator special authorizations has been provided in order to get trusted relationship RFC authorizations. 
    Note:
    I have added Full Authorizations under these new special objects S_RFC, S_ICF, S_RFCACL, & S_RFCADM  and same was assigned to all our Security Administrators.  Remote Logon & Trusted Connectivity is working fine for all of us.
    We are 4 Security Administrator here, And for All of us this new concept of Trusted RFC for CUA is working fine.
    New Authorizations updated on both CUA and the Child System.
    Our ids are replicating as a log in the last change by field of SU01 and change document of SUIM. Happy to see this. 
    But unfortunately there are strange ABAP dumps are started generating from CUA (SolMan) System soon after this Implementation.
    When we look into ST22, runtime errors CALL_FUNCTION_SINGLE_LOGIN_REJ &  CALL_FUNCTION_SYSCALL_ONLY are keep generating.
    Following are the example of dump logs and all the dump are with similar fashion but with different user-ids within that.:
    Short text:  No authorization to logon as trusted system (Trusted RC=0).
    What happened?  : Error in the ABAP Application Program The current ABAP program "SAPMSSY1" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    Error analysis:  An RFC call (Remote Function Call) was sent with the invalid user ID "(End user user-ids)".  Or the calling system is not registered as trusted system in the target system.
    How to correct the error: The error code of the trusted system was 0.
    Meaning: 0    Correct logon as trusted system mode
    1 No trusted system entry for the calling system "BIP " (like other child System) or the  security key entry for the system "BIP " is invalid
    2 User "111552 " (Type of End user) does not have RFC authorization (authorization object
         (S_RFCACL) for user "End User id " witl client 100.
    3    The timestamp of the logon data is invalid
    The error code of the SAP logon procedure was 6. (6    No external user check)
    My Point: I think All these End users are trying to connect CUA Trusted RFC connections through individual different child Systems..
    Why they need to Connect to CUA and for what reason they need special Trusted RFCu2019s authorization???
    Pls help me to fix this problem.
    I have gone through the old SDN posts related to the same topic and few SAP notes and help link but it wont help.
    Note 1579570 - Problem with trust relationship after using HMAC
    Note 128447 - Trusted/trusting systems
    Note 131387 - No authorization to log on as a trusted system
    Note 986707 - No authorization to log on as a trusted system (RC=1)
    Few More SAP Notes: 986707, 333441, 1151790 & 128447
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/0010519daef443ab06d38d7ade26f4/frameset.htm
    We donu2019t see any logs under SCUL, BD87 & ST01.
    Please anyone can assist me on this.
    Regards,
    Asif

  • Change of date in P.O

    Dear Gurus,
                        my client is now entering P.O for the month of April 2008. now, when they are making p.o for April month, today's date is appearing in the p.o. then by mistake they are processing it.
                        how do i make the date only for april month. is there any background process to lock the date? kindly suggest? Thank you.

    Dear,
    You can manage it via ME21N t-cd. Enter t-code ME21N and first change document date of purchase order which is available at behind the document number.
    than enter your required detail for purchase order creation.
    NOTE: - You can take only open period date in purchase order creation.
    If your MM period is close you can't create purchase order in close period.
    To see period of MM go in MM03, Enter any material code and go in Accounting view 1. Here you can see current period of MM.
    Regards,
    Mahesh Wagh.

  • Document Date - A/P Invoice

    Hi All,
    I'm having an issue with A/P Invoices.
    My customer wants to post an Invoice with these dates:
    Posting Date: 26/03/09
    Due Date: 30/01/09
    DocDate: 31/12/08
    The payment conditions for this BP are set to 30 days, counting from DocDate.
    I've changed the definitions for the current period (2009-03) and the docdate is now from 01/12/08 to 30/01/09.
    What happens is that the doc due date is changing automatically with the posting date, instead of changing with the docdate.
    As it is defined on the payment conditions, shouldn't it change only with the docdate?
    Kind regards,
    Pedro Santos

    Pedro,
    What actually happens is when you change the posting date - the document date will automatically change to match the post date.  So the calculation still works based on Document Date.
    System function:
    Posting Date change will affect Document Date
    So if you change posting date after you have changed the document date...this will happen.  So please change document date only after you have finalised the posting date.
    Suda

  • Change order date if output for change order

    Hi guys,
             how do i pull the change order date on to the printout only if the output is for change order.I don't know much about change order.i would really appreciate your help.
    Thanks
    Chris

    Hi Cheris,
    Assume you mentioned purchase order change date ?
    Change document date won't be updated in the purchase order header table(EKKO) or purchase order item table(EKPO).Generally all the changes will updated in the CDHDR (Change doument header table ) with Object value <b>OBJECTID</b>( Doument number ex: purchase order ) , User name of the person responsible in change document <b>USERNAME</b> , Creation date of the change document <b>UDATE</b> and etc,..
    In your case consider CDHDR- UDATE filed as change order date. While selecting the updated information from the table make join query bet'n EKKO, EKPO and CDHDR with required combination and show the change order date on the PO printout.
    I hope this will helps for you.Thanks.
    Regards,
    SAP TN.

  • Any one knows how to change "TransptnPlanng date" in delivery document?

    Deal All,
    Could any one provide the BAPI/FM that can change "TransptnPlanng" date/time in inbound/outbound delivery documents?
    I need to update the dates only in ABAP program based on external information.
    I tried WS_DELIVERY_UPDATE with the following parameters setup:
    VBKOK_WA-VBELN_VL = target delivery number
    VBKOK_WA-TDDAT = "12/12/2009"
    VBKOK_WA-TDUHR = "12:12:12"
    (for the other fields in structure VBKOK_WA, I leave them blank)
    DELIVERY = target delivery number
    After run the FM in test mode, no error returns but no data updated in the delivery... (dates not change)
    Do I need to specify all the other fields for the delivery (like delivery date, line item details etc) even though I just want to update two fields in the header of the delivery?
    Thanks & Regards,
    Wenling

    BAPI_OUTB_DELIVERY_CHANGE works in this case (just to change the date)
    Need to put "X" on the date field on structure BAPIOBDLVHDRCTRLCHG and need to use table BAPIDLVDEADLN with correct date type to update.
    Thank you all for your replies.

  • Implications of Changing Posting date of parked document.

    Hi,
    I have changed the posting date, document date & translation date to current period
    of an already parked document in a closed period.
    (e.g) Document parked in month of 28.04.2009(closed period) & i have changed the dates to
           28.05.2009(current period)
    I need to know what are the implications of the changes in dates for (posting date, document date & translation date) induvidually for both the periods(closed & current).
    Thanks
    Kenn

    Hi,
    There is no implications of change the the posting date of parked document because parked documents are not affected in financial.When you post the doucment then it will affect in finance.so there is no problem. You can change the posting date or document date only in a Fiscal year.

  • How to change billing date in S1 - cancellation billing document

    Dear Friends,
    Could you please tell How to change billing date in S1 - cancellation billing document which is even not released to accounting & in gray mode.
    Is it possible?
    Thanks in advance.
    Ranjan

    Dear,
    Thanks for asking exact problem.
    1. PGI in 2008
    2. F2 Billing date in 2003 ( By mistake by the user)
    3. S1 Billing date in 2008
    4. PGI reverse in 2008 & OBD deleted in 2008
    So reduced billing qty is shown in report in 2008 because of S1 Billing date in 2008,
    Billing qty  is not matching with the actual PGI quantity.
    So here if the cancellation billing document S1 could be changed for billing date in 2008, then you could balance it
    Now my issue is how to balance it.
    hope you find it it very interesting
    Awaiting your response.
    Ranjan

  • Change default document date ?

    Hi guru,
    When posting material docs in t-code such as MB1A, MB1C, document date is defaulted from current system date.
    I want to change the document date to be suggested from an add-on table.
    I've investigated MB* enhancements without fruitful results.
    Any good idea ?
    Regards
    Mankyoo Kim

    Hi,
    We can assign ship-to party to selection screen.
    IMG>SD>Sales>Lists>Set Updating Of Partner Index
    Click on new entries 
    Transaction group "0", partner function "SH" and save it.
    Goto VA05 T.Code, click on partner functions tab. you will get pop-up window. choose "SH" and press enter
    you will get ship-to party filed in selection screen.
    Regards,
    Chandra
    Edited by: chandra sekhar S on Sep 17, 2008 2:15 PM

  • Changing billing document date while creating billing document from vf01

    Hi gurus,
    I have requirement to change billing doc date while creating billing document from VF01.
    here I have to consider goods issue date eq billing date.
    caluculating billing date = Goods Issue + Goods in Transit duration time.
    I have done everu thing but I cant update the caluculated date, iam using the following enhancement
    Enhancement:SDVFX001
    Function Module:EXIT_SAPLV60B_001
    Include:ZXVVFU01 which are part vf01.
    here iam sending the calculated date to VBRK-FKDAT
    move cal_date to vbrk-fkdat.
    need help how to update the calculated date to VBRK-fkdat i.e billing document date
    Regards
    Bhaskar

    Hi
    No! That exit is not good for your issue
    U can use the user-exit USEREXIT_NUMBER_RANGE_INV_DATE  defined in RV60AFZC
    Max

Maybe you are looking for

  • Can you render clips / transitions

    I have a new Mac that is very very fast. However, even still some video transitions don't play smoothly. I can export the whole project into a quicktime movie or .m4v file and see them smoothly, but I cannot see them play smoothly in iMovie. Is there

  • How can i close the window when i logoff transaction iviews?

    Hi I want to close the Portal session window, when i logoff R/3. Is there any properties need to set in iview? pl suggest me thx pradeep

  • I have iphone 5 but can't connect iTunes

    I have iPhone 5, but can't connect iTunes. My type of iPhone model ND300ZP/A, model on back iPhone is : A1429 (GSM & CDMA). Serial Number : DNPJC0C6D*** I use win 7 sp 1 error when connect windows : iphone 5 I need solution for it. Please, i want to

  • MRP Run Against Sales order

    Can you run MRP against a sales order , if so which tcode can i use to accomplish this. Thank you

  • Javascript and hide and show.

    Is there any way to hide single item on the form (not region)? I have tried to hide an item based on the condition. I have radiobutton with value 1 and 0 so I have created on click event that check its value and hides item but: the item that I want t