Skip to Content

VA41 - Contracts

Hi Guys:

My requirement is need add field in the item level called <b>Delivery Date</b>. Already this field is avialble in the schedule lines, Is there any userexit available if not i will change the screen directly. After adding the field in the table control,I have to transfer some of the fields contents to schedule lines such as <b>TargetQuantity to Delivery quantity</b>, <b>Deliverydate to Deliverydate.</b>

Please suggest me ways of doing the task,

Thanks in Advance,

Regards

Suresh Babu Karanam.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    Posted on Feb 16, 2005 at 03:11 PM

    Hi!

    You might run into some problems, because there can be multiple schedule lines (VBEP) for one item line (VBAP). There is not necessarily a 1:1 connection.

    Anyway, user-exits are very old style and can be found as routines in includes MV45AFZB, MV45AFZZ,...

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 17, 2005 at 08:42 AM

    Hi Christain:

    Thanks your response i have alredy raised points.

    You mean these userexits used for adding field in the table control of the <b>VA41 lineitems</b> or transfering of <b>delivery.date and target quantity</b> to schedule lines. I have to add field in <b>VA41</b> item level.

    Thanks

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Suresh,

      caused by missing examples I have to look at VA01 (but it's same program).

      First delivery date is already copied into field RV45A-ETDAT (First date), target quantity I can't follow - see above.

      There is a tabstrip for customer header fields, but that's the only predefined field extension (as far as I know).

      So you have to decide:

      a) if you miss-use an other standard field, which is already on line level, or

      b) if you make a modification and append your field.

      But these user-exits still might help in case of modifications, because you get right place (-> time) for value assignments. USEREXIT_MOVE_FIELD_TO_VBAP is called during creation of new line (probably to early for you, but correct place for default value assignments), USEREXIT_CHECK_VBAP is called at end of line processing. Here field changes can be done, too - but changes don't trigger follow-on functions any longer.

      But also in USEREXIT_MOVE_FIELD_TO_VBEP you can change values of VBAP by accessing XVBAP - and it's getting more 'out of line' of original SAP data flow.

      I guess, there is no easy way and you will need a lot of testing...

      Regards,

      Christian

  • Posted on Feb 17, 2005 at 11:12 AM

    Hi,

    to give a short answer: yes!

    So you will place a break-point in every routine, which may have something to do with your tables and just start entering an example.

    You will find, that some stops are to early (but would have been nice to use, because of easy change-access).

    Others aren't executed in all circumstances (only one special way of maintenance...).

    There won't be much left (but I hope you agree, it's difficult to foretell): here you will make your changes. Maybe you need to read XVBEP (or XVBAP) to get your values, maybe you have your value at hand and you will change above table.

    Just start debugging!

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 17, 2005 at 04:07 PM

    Christain:

    Thank you very much once again trying give po'ble ways, I will let you know if any problem occurs!!

    Regards

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2005 at 03:11 PM

    Hi Christian:

    Now i am devleoping the functionality which we have discussed.

    I have taken delivery date field as <b>RV45A-ETDAT</b>now it was appeared in the va41 item level, problem is when i entered mateiral in <b>va41</b> , <b>delivery date</b> is automatically coming it maybe customization, it was not taking outside date at all, is there any option to give <b>date manuvally</b>. Please lemme know and give suggestion , is that way i am doing is right?

    Regards

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Suresh!

      Yes, date of first line of schedules is copied by standard.

      (For sales orders) changes of delivery date (RV45A-ETDAT, first date) is allowed and triggers new schedule calculation.

      You can't deactivate these 'user-exits', so create new database table and store some flags.

      Check in each of your user-exits, if flag is set - otherwise exit immediately.

      This will enable you to test standard behavior with program changes - when you include username as keyfield, you can deactivate all exits for user used by SAP-OSS-persons -> total standard behavior.

      I propose, you make first some tests about RV45A-ETDAT without additional coding.

      Regards,

      Christian

  • Posted on Feb 23, 2005 at 08:52 AM

    Hi Christain:

    Thanks Once Again, Now my idea of this Task. According to you i will add field in <b>VBAP</b> for <b>Del.Date</b>so that the date which i have entered is avialble in XVBAP Internal Table, then i will move <b>XVBAP to XVBEP</b> in userexit which u have suggested in last thread.

    <b>Move XVBAP-zdate to XVBEP-ETDAT.

    Move XVBAP-kwmeng to XVBAP-wmeng.

    append XVBEP.</b>

    Correct me if i am wrong!!!

    Regards

    Suresh

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi!

      Hope this time I can make clear statements:

      SAP copies first line of (X)VBEP into RV..-ETDAT

      Don't append XVBEP-lines -> you will confuse data flow of transaction.

      XVBAP-kwmeng to XVBAP-wmeng? Second table is XVBEP? As long as there can be multiple lines, simple move can't handle all circumstances.

      You have to look more closely on standard functionality before changing code!! Maintain several examples, debug all places were you might need changes and get understanding of SAP's action before adding own stuff.

      Regards,

      Christian

  • Posted on Feb 24, 2005 at 09:32 AM

    Hi Christian:

    i have found userexit yesterday by looking SAP standard functionality. In that userexit i can able to add date to RV45A-ETDAT and quantity which i have to move from item level to schedule lines , After there is SAP standard code which was <b>clearing both fields</b>. But after i can't found userexits to move data into those fields. I am thinking of any <b>BADI's</b> might can solve my purpose.

    Waiting for your suggestion!!

    Regards

    Suersh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.