MBST finds document in VBFA and accesses LIKP for previous year document

Hi all,
I don't know if this is the right place to post. As an ABAP developer, I'll put my query here :
Scenario : In MBST, for a particular document type and year 2012, it displays error and says "No Authorization for shipping point X", though the document is posted againt another plant/shipping point Y. This material was posted for X in 2011. And we are not able to determine why MBST is picking up 2011 record.
Analsysis :
On debugging, we found -
There is an FM "WS_FIND_ORIGINATE_DOCUMENT" called in program LMBDFU01.
This FM is called on pressing enter on the initial screen in MBST i,e before we press Save.
Here there is a query to where it finds the document in VBFA :
SELECT * FROM VBFA APPENDING TABLE XVBFA
                         WHERE     VBELN   = MBVBFA-MBLNR
                         AND     ( VBTYP_V = 'J' OR VBTYP_V = 'T' )
                         AND       ERDAT LIKE BELJAHR
                         AND       VBTYP_N = 'i'.
Here it doesnt find document for 2012, so it searches for 2011 (subtracts 1 from the year passed in MBST).
It finds a document for 2011 in VBFA and picks up the corresponding VBELV and passes it into VBELN in LIKP and hence fetches the previous year record and plant and authorizes the user against it.
In ideal condition, there is no document fetched for any year from VBFA and no LIKP is accessed. Any idea on why there could be a document present in VBFA for this document ? And how I can prevent from selecting this record as this is standard.
Thanks and Regards
         Vivek

Hi,
Thanks for your reply,
Yes we have migrated on 1.4.2009 and test migration have been performed .
But my client is to close books of accounts so it is having the said requirement of vendor to vendor transffer,kindly suggest me other alternative
Regards
vijay

Similar Messages

  • How to find function module's and tables used for the particulat screen or TCODE?

    Hello Nation,
    I would like to know how to find the  function modules and tables used for the particular screen or TCODE or program.
    Example : I would like know the function module used in the program RDBGFT?
                     How can i find that?
    Thanks in advance ,Awaiting your reply.

    Make use of Find function  with the keyword "CALL FUNCTION".
    Make use of the same find function with the keyword "Select" to know the database tables used.
    Regards,
    Philip.

  • [svn:osmf:] 10437: Add support and unit tests for parsing VAST documents ( inline or wrapper).

    Revision: 10437
    Author:   [email protected]
    Date:     2009-09-20 13:31:16 -0700 (Sun, 20 Sep 2009)
    Log Message:
    Add support and unit tests for parsing VAST documents (inline or wrapper).   All elements are covered with the exception of Video.
    Modified Paths:
        osmf/trunk/libs/VAST/.flexLibProperties
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTAdPackageBase.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTDocument.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTInlineAd.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTWrapperAd.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/parser/VASTParser.as
        osmf/trunk/libs/VASTTest/org/openvideoplayer/vast/parser/TestVASTParser.as
    Added Paths:
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTAdBase.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTCompanionAd.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTNonLinearAd.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTTrackingEvent.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTTrackingEventType.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTUrl.as
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/model/VASTVideoClick.as

    Your problem sounds similar to this one, except that they're using software raid rather than just pure LVM. If you're using an initrd, you may not have the appropriate modules installed. If you're not using an initrd, then the kernel probably needs LVM support compiled in (not as a module) and could be solved by fixing that. I have never used the ck-patchset, but this should give you an additional data point.
    Also comment=systemd.automount will be deprecated soon as I understand it; if you have a need for automounting, x-systemd.automount should be used instead.

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • How to find out the plants and storage location for a given company code

    hi
    How to find out the plants and storage location for a given company code

    Hi
    Check for Assignem,ent of Plant & compnay code in OX18
    & for Combination of Plant & Storage location in OX09
    The total org structure can be viewed in EC01 - Click on Structure  -> navigation
    & Continue, Click on the Compnay code & the wole structure can be viewed
    Thanks & Regards
    Kishore

  • A document is created in Adobe X1 Pro can that document be opened and annotations be made onto that document in Adobe Reader?

    A document is created in Adobe X1 Pro can that document be opened and annotations be made onto that document in Adobe Reader?

    Yes, Adobe Reader XI can add annotations.

  • I had already paid the teacher, student edition. And it's for a year. But now since my 30 days free tril was over, I couldn't open it anymore.  can someone please help me?

    I had already paid the teacher, student edition. And it's for a year. But now since my 30 days free tril was over, I couldn't open it anymore.  can someone please help me?

    Felipef32638067 please see Sign in, activation, or connection errors | CS5.5 and later for information on how to resolve the connection error preventing your membership from authorizing.

  • Cancel and Issue cheque for a clearing document

    The vendor was issued a cheque  in 2008 and the vendor line item is cleared too in 2008 and those documents are archived.Now the vendor says that cheque wasnt enchased.Now we want to cancel the cheque and re issue new one.But the documents are archived.Please advice what can be done to dealt with it to issue new cheque for the same payment document andcancel the old issued cheque.

    you can void the check without reversing the payment document.
    Then create manual document with the reverse impact of the payment document and then make the new payment document with new check.
    Regards,
    Gaurav

  • How do I add a password where I never had one? All I can find is change password and that asks for an old password which I do not have.

    How do I add a password as user and administrator where I never had one? All I can find is change a password which asks for an old password to be entered and I do not have an old password.

    Just leave the old password field empty and enter the new password

  • How can I view and use PureEdge for my military documents?

    I'm new to using Mac computers and I have tons of military forms that I need to use on a daily basis. So I'm asking anyone that has been in the military and used PureEdge to help me out.

      I am the one who actually ported PureEdge and Lotus Forms for Mac. As for resizing the window you need to use the screen size controls that are native to the program. You can access the control from the bottom right of the window. Click-Drag (It's actually very easy, and allows the program to look like it belongs in a Mac environment) You can also remove decorations through the program, but it will look like a win98 gui.
      Unfortunately several sites have repackaged this program, omitting the original readme. Regardless, Lotus Forms V4.0 and higher is more stable in OSX. I have made available a new version based on Lotus Forms Viewer 4.0.0.3 which will allow you to view, edit and print like before. The major difference is that the new version does not have or need Java to function. There are some drawbacks to this with newer forms but they will still load and can be modified.
    The latest version can be downloaded here: http://aeonconcepts.com/lotus
      Please Note: Unless drastic changes are made to revised forms that break functionality of this version, this should be the last release required. If future OSX versions break the functionality, an updated version will be released.

  • FM to find out schedule calls and their statuses for a Maintenance plan

    Hi,
    Please let me know if there is any FM to find out all schedule calls and their statuses for a Maintenance plan.
    Regards,
    Vimal

    Hi Vimal
    Below function module will serve your purpose.
    ZPM_GET_SCHEDULING_STATUS
    Regards
    Anil Kumar

  • How to find custom Tcodes,programs and enhancement.. for a specific country

    hi...
    Is there any way in ABAP to find the Custom Tcodes, programs and enhancements only for specific country in our present system.

    Hi Srujan,
    Use the table name TSTC to find the custom program and t-code.
    To find the custom enhancement use t-code : CMOD.
    Regards
    Dev

  • MDX to fetch record from 1st of current month to 5th of next month and same for previous year

    In my date dimension I have a attribute CalendarDate. I do have a hierarchy [Date].[Year].[Quarter].[Month].[CalendarDate] as well. I need to fetch data starting from 1st working day of current month to 5th working day of next month by MDX. I do have a attribute
    to filter working day as IsWorkingDay. How can we get a dynamic MDX that will find the current month first and than it will filter the record from 1st working day of current month to 5th working day of next month. And same for the previous year same month
    to compare.
    Thanks in advance!
    Palash

    Hi P,
    You can use a calculated member to dynamically add all the days in the current month and the first 5 in the following month.  You will need to change measure, cube and hierarchy names.
    with member measures.ThisMonthAnd5 as 
    sum([Date].[Year].parent.children,Measures.[Sales])
    +sum(Head([Date].[Year].parent.nextmember.children,5),Measures.[Sales])
    select 
    {Measures.[Sales]
    ,Measures.ThisMonthAnd5
    } on 0,
    non empty [Date].[Year].[CalendarDate]  
    on 1
    from MyCube
    Richard

  • Document split for previous year open item

    Dear All,
    We have upgraded from 4.6 to ecc 6.0 .I have a problem of document splitting .
    Suppose there is open item of previous year i.e vendor  and after 1.4.09 the liability is transferred to another vendor the system gives me error that' profit center field in line item 001 is not filled' which seems correct as open item before 1.4.2009 does not have profit center.If the same liability is paid through bank than bank a/c is maintained in 3kei and document gets posted.
    Also when salary is paid ,some salary is deducted for paying lic premium so salary payable account is credited  on 31.3.09 and after 1.4.09 the same a/c is debited and credit is given to LIC OF INDIA.
    Both payable a/c and lic of india are balance sheet items and system gives me error while posting the documents.
    If the same transactions are after 1.4.09 the system inherits prctr from previous transactions but since in above examples there is no prctr in previous documents the system throws error message
    'profit center field in line item 001 is not filled' .
    Kindly provide me suggestions
    Thanks and regards
    vijay

    Hi,
    Thanks for your reply,
    Yes we have migrated on 1.4.2009 and test migration have been performed .
    But my client is to close books of accounts so it is having the said requirement of vendor to vendor transffer,kindly suggest me other alternative
    Regards
    vijay

  • Previous Year Documents.

    Dear All,
    Even after the posting period is closed and locked. the previous Records are appearing in the list of documents in the current period.. What would be the reason.
    Thanks
    Santhosh.k

    Hello Santhosh,
    If you refer to Open Item List, all previous open documents would be showed up no matter the periods were closed or not.
    Thanks,
    Gordon

Maybe you are looking for

  • Error ,message into table

    Hi all, i am trying to put a error message into a table...any idea how i can get this without doing move 'matnr & is in error' into my table? thanx

  • Multiple Data entry profiles in ESS -Webdynpro?

    Hi All, We have an issue here with the data entry profile. The current system(ITS with 4.6c) has multiple data entry profile, from which the employee can select the profile according to the personel area,  he is in. ( Employee can have multiple data

  • JComboBox Length question!

    When i use JComboBox,it's length is fixed.Perhaps some items is too long to display,so user can't understand it clearly.So i want find JComboBox that can expand automaticly,if item is long,it will be expanded.I tried several function JComboBox provid

  • JTabbedPane selected tab size

    Hello everybody; I've created a JTabbedPane with JLabel on each tab and i want that the selected one size be larger than the other tabs. The problem is that if I increase the size of the selected tab, all the others (inselected tabs) do so (they take

  • C3-01 crashed during software update (to v6.00) an...

    I used Nokia Ovi Suite to upgrade the software on my three-month-old C3-01 via USB cable. During the upgrade, after backing up phone content, during the actual installation stage, I got all sorts of random error messages from Ovi Suite (eg 'SIM not f