User exit is used to get incoterms from ship-to-party.

Hi Gurus,
my client needs to catch incoterms from ship-to-party,
please let me know which user exit is used to get incoterms from ship-to-party.
regards,
Naren

In our system we get the inco terms from the ship to party. We use user exit move_fields_to_vbkd in program mv45afzz. The code looks like this:
Inco terms
Added to get the values of Inco Terms from
Ship-To-Party instead of Sold-To-Party.
data: oldship like kuwev-kunnr value space.
if sy-ucomm   <> 'UEBR' and  "Ordre er ikke oprettet med reference
   t180-trtyp <> 'A'.        "Der er ikke Vis mode
  import oldship from memory id 'ZSS'.
  if *vbkd-inco1 is initial. "Første gang vi er i User-Exitet
    if kuwev-kunnr <> kuagv-kunnr. "Varemodtager forskellig fra ordregiver
      select single inco1
                    inco2
     into (vbkd-inco1,
           vbkd-inco2)
     from knvv
    where kunnr = kuwev-kunnr
      and vkorg = vbak-vkorg
      and spart = vbak-spart
      and vtweg = vbak-vtweg.
    endif.
  elseif oldship <> kuwev-kunnr and
   ( *vbkd-inco1 <> vbkd-inco1 or
     *vbkd-inco2 <> vbkd-inco2 ).
    select single inco1
                  inco2
      into (vbkd-inco1,
            vbkd-inco2)
      from knvv
     where kunnr = kuwev-kunnr
       and vkorg = vbak-vkorg
       and spart = vbak-spart
       and vtweg = vbak-vtweg.
  endif.
endif.
Det skal ligge udenfor if-sætningen for at undgå at det overskrives
ved oprettelse med reference
move kuwev-kunnr to oldship.
export oldship to memory id 'ZSS'.
/Torben

Similar Messages

  • User exit for incoterms from ship-to-party

    Hi Gurus,
    my client needs to catch incoterms from ship-to-party,
    please let me know which user exit is used to get incoterms from ship-to-party.
    regards,
    Naren

    In our system we get the inco terms from the ship to party. We use user exit move_fields_to_vbkd in program mv45afzz. The code looks like this:
    Inco terms
    Added to get the values of Inco Terms from
    Ship-To-Party instead of Sold-To-Party.
    data: oldship like kuwev-kunnr value space.
    if sy-ucomm   <> 'UEBR' and  "Ordre er ikke oprettet med reference
       t180-trtyp <> 'A'.        "Der er ikke Vis mode
      import oldship from memory id 'ZSS'.
      if *vbkd-inco1 is initial. "Første gang vi er i User-Exitet
        if kuwev-kunnr <> kuagv-kunnr. "Varemodtager forskellig fra ordregiver
          select single inco1
                        inco2
         into (vbkd-inco1,
               vbkd-inco2)
         from knvv
        where kunnr = kuwev-kunnr
          and vkorg = vbak-vkorg
          and spart = vbak-spart
          and vtweg = vbak-vtweg.
        endif.
      elseif oldship <> kuwev-kunnr and
       ( *vbkd-inco1 <> vbkd-inco1 or
         *vbkd-inco2 <> vbkd-inco2 ).
        select single inco1
                      inco2
          into (vbkd-inco1,
                vbkd-inco2)
          from knvv
         where kunnr = kuwev-kunnr
           and vkorg = vbak-vkorg
           and spart = vbak-spart
           and vtweg = vbak-vtweg.
      endif.
    endif.
    Det skal ligge udenfor if-sætningen for at undgå at det overskrives
    ved oprettelse med reference
    move kuwev-kunnr to oldship.
    export oldship to memory id 'ZSS'.
    /Torben

  • How can we fnd wich user exit yo use for

    hi ABAP masters
    how can we find out which user exit to use or a particular requirment.

    Hello Devender,
    The procedure followed is usually by reading the documentation
    eg: consider a user exit or BADI definition
    We get a hint from the text of the same...if not we refer the documentation given
    if documentation is not available we check the signature of the enhancement i.e, which all fields are importing,exporting,which tables can be changed which cannot ....etc
    Finally ,if none works out we do what abapers do best
    Put a break point and see if it works or in case of BADI ,create a test implementation and see if it works out..
    so here is the summary
    Check description ->  Check documentation  -> Check signatures -> debugg/Trial and error
    Hope it helped you out
    Regards
    Byju

  • BAdi or User exit to use in MB26 to avoid posting before saving of mat doc?

    Hello Experts,
    Can anyone tell me which BAdi or User exit to use in MB26 to avoid posting before saving of material document?
    I have requirement to stop posting incase of negative invetory in issuing storag location.
    Thanks

    Hello,
    The issue is currently we alllowing the negetaive stock at storage location level.At this movement , we want to avoid the negetive stock creation while posting the Mat doc with MB26.Before saving the material document I want check the stock levels in MARD , if the stock levels goes negative from this posting, then I want to stop the document posting.
    Thanks

  • How to handle  user exits while using BAPI

    HI experts can any one help me on how to handle user exits while using BAPI. Do we need to handle it explicitly or standard  BAPI will take care of it??.
    Regards,
    Hari Krishna

    If you have added some fields using append structures for screen enhancements, then you have to use appropriate user exits to fill these data while calling BAPI.  Some BAPIs have EXTENSION structures to fill the custom data which can be processed using user exists or enhancements.
    Regards
    Vinod

  • How to find whether user exits are  used in the query or not??

    Hi ,
    I have to make the list of queris in which user exits are used.
    Please any body help me how to find the queries in which user exits are used.
    Thanks
    Maruthi

    Hi Maruthi,
    Using table RSZGLOBV you can find out the queries that have customer exit variables.
    Set filter VRPROCTP (processing type) = 3 means customer exit.
    and the field COMPID will give you the Query name.
    Best Wishes,
    Mayank

  • User exit for iw21 to get Equipment 'position'

    Hi,
    can any one give the user exit for IW21, to get 'Position' of equipment.
    i.e. when i enter equipment in IW21 i am to save it's 'position '  automatically.

    Where do you want to to save the position in the notification?
    Also see the link at the top of this forum for PM/CS User-Exits
    PeteA

  • How user exit is used to populate the Profit center field in  Sales order?

    Hi All,
    Please let me know :
    How the user exit is used to populate the Profit center field in the Sales order?
    Please gurus answer as quickly as possible as I require this urgently.

    Hi,
    To derive the correct profit center in the Sales Order, you customize in 0KEM.
    Trust this helps much and do encourage our efforts!
    Cheers!

  • Fetch Sales order number and PO number from ship to party and sold to party

    HI,
    I need to get Sales order number and PO number
    from ship to party and sold to party.
    I have only ______sold to party and ship to party and req del date_______ in selection screen as mandatory
    Please let me know
    Sreekanth

    Hi,
    You can do this:-
    SELECT VBELN FROM LIKP
    INTO TABLE T_DELIVERIES
    WHERE KUNNR = SHIP TO PARTY
    AND     KUNAG = SOLD TO PARTY
    AND LFDAT      = DEL DATE.
    You will get a table containing the list of deliveries.
    Use VBFA to get the sales orders from deliveries.
    SELECT VBELV FROM VBFA
    INTO TABLE T_SALESORDERS
    WHERE VBTYP_N = 'J'
    AND     VBELN  = T_DELIVERIES-VBELN.
    T_SALESORDERS WILL give you list of sales orders.
    From Sales Orders you can get Purchase orders through EKKN Table.
    Using EKKN pass T_SALESORDERS-VBELN and get corresponding EBELN.
    Regards,
    SUbhashini

  • Bill to party should be pulled from ship to party.

    Hi
    I have scenario in which I want to pull bill to party from ship to party and not from sold to party in sales order. Business requirement have one sold to party say A . This sold to party has 4 ship to party say B,C,D,E.  Every ship to party has one Bill to party respectively say L,M,N,O.  This scenario is only for one customer and not for all. When ship to is entered in the sales order it should give options to select the bill to party .
    I want to know the config steps alongwith the name of the user exit (if it is required for)
    Thanks in advance.
    James.

    Before answering this question, I would like to thank Lakshmipathi for his compliment and James for this interesting scenario.
    Lets say your new ship to parties are 90 & 91.
    Lets say your new bill to parties are 110 & 111.
    So your new requirement is when you enter ship to party 90 or 91, bill to party 110 or 111 has to be determined from sold to party.
    Am I correct? That's how I understood your question(If this is not you are not looking for, please advise).
    In case yes, you  could do the following.
    In your sold to party record, partners Tab, enter the details of your new ship to parties and bill to parties.
    In sales order, enter ship to party and system would pop a box listing bill to parties. You can select one of the bill to parties.
    Once selected, system would populate sold to party record field.
    This is happening because when you enter ship to party record in sales order, system accesses sold to party from ship to party. Once it accesses sold to party, it lists bill to parties available in this sold to party record.

  • Call partner function from ship to party

    Dear Gurus,
    I have two account group A and B, A contain the partner function of SP, SH, BP and PY, and B account group having function of ship to party, bill to party and payer.
    In configuration i have made the settings.
    At sales order level i enter the sold to party and if enter different ship to party in the next field system call the BP and PY from Ship to party master record. that is as per requirement.
    But if i presss enter after entering the sold to party no system call all the function from sold to party, and then if i change the ship to party system only change the ship to party but not again determine the BP and PY partner function from ship to party.
    Kindy suggest the possibe solution so that system again the redetermine the bill to party and payer function.
    Looking for the gurus response.
    Regards,

    Hi,
    In your partner partner procedure against partner function BP or PY enter source as SH then system will determine this to functions on basis of Ship to party
    Or else either you can not maintain other partner functions in sold to party master means you can take all partners from ship to
    Or else manually put ship to party immediate after sold to party and then enter
    Or else check any user exit available for re-determination of partner
    Note : First option will definitely work, try
    Kapil

  • Can "order combination" field be copied from ship-to party?

    We want "order combination" field on sales order to be copied from ship-to party, not the sold-to party, is there any way to do so? Do we have to modify the user exit? anyway to do this, without modify the user exit?
    Thanks!

    Thank you for reply!
    Business has customers with different ship-to parties. Some ship-to party requires 'order combination', other ship-to do not need 'order combination', so the businees users want to make this field copied from ship-to, instead of sold-to.
    As I can see almost all business relevant data, for example, inco term, payment term, shipping conditions.... are all copied from sold-to party, by standard SAP. I am wondering is there anyway to make them to be copied from other partnership, when require. I know we can do this by modify the user exit, but just wondering is there anyway in configuration settings....& without program change, can achieve this?

  • How to determine "Sold-to" party from "Ship-to" party

    Hi friends,
    <<text removed>>
    I have to determine the "Sold-to" party for a particular "Ship-to" party. Could you please let me know what is the Table we need to query for this??
    I have already checked out table KNVP, however I could not find the correct "Sold-to" party for the "Ship-to" party.
    <<text removed>>
    Thanks,
    Vishal.
    Edited by: Matt on Feb 11, 2009 11:22 AM  An emergency on your part doesn't consititute an emergency on our part.  To understand why your post is edited - read this http://catb.org/~esr/faqs/smart-questions.html
    Edited by: Matt on Feb 11, 2009 11:23 AM

    Hello Vishal,
    Ship-To party is assigned to Sold-To for each sales area. So the first step to get Ship-To, is to determine the Sales Area, if you don't have that then you can use the FM   SD_PARTNER_SALES_AREA_CHECK to get the Sales Area.
    If you already have the Sales area, then you can use the following FM, which will return Ship-To party code.
    *  Get Sold-To from Ship-To Party
       Call Function 'SD_PARTNER_GET_SOURCE_PARTNER'
          Exporting
             I_KUNNR             = cKUNNR  "Sold-To party
             I_PARVW             = 'WE'
             I_PARVW_SOURCE      = 'AG'
             I_VKORG             = cVKORG
             I_VTWEG             = cVTWEG
             I_SPART             = cSPART
             I_CALL_BAPI         = ' '
          Importing
             E_KUNNR             = cKUNAG
          Exceptions
             No_Partner_Found    = 1
             No_Partner_Selected = 2
             Others              = 3.
    Let us know if this helped...
    Amit Purohit.

  • Delivery idoc picks ship to contact from ship to party instead of ship-to c

    Hi experts,
    I have question on idoc.
    The idoc is picking ship to contact information from ship to party instead of picking it from ship to contact information.
    Following information are given to me.
    Message Type: DESADV
    Basic Type: DELVRY01
    Extension: ZDELVRY
    Function Group: ZIHX & Function Module: Z_RFC_IH_DELIVERY_UPDATE.
    Where do I make the changes. Please help.
    Regards
    Vince

    Hi Swathi,
    Thanks for the information I am able to find the exit, but when I set a break-point in the exit(EXIT_SAPLV56K_002) it does not go to debugging mode. Can you please let me know why...
    The field segments exists for ship to contact but pulling data from Ship to party, which I probably think
    can set it in exit.
    Can you please let me know about qualifiers...
    Thanks
    Vincent

  • How to get the program where the User exit is use

    Hi,
       Could anyone let me know how to get the program which is using the user exit
    EXIT_SAPLFMR4_002 .
    Thank you.
    Donny~

    You can do a where used on the functino module EXIT_SAPLFMR4_002 in SE37.
    In this case, you user exit is called from a function module FMRE_FI_BELEG_CHECK.  Which in my system, doesn't appear to be called directly. It could be called dynamically.
    Regards,
    RichHeilman

Maybe you are looking for

  • Unable to See Custom Intergrator in R12 in front End

    Hi , Did u had any luck . I am pretty much facing the same issue. I created a custom Integrator using the API . I can see the integrator in the tables but not from the fornt end. Can some one pleas eelborate what steps to be done to have it view in f

  • Best way to set up email/contacts/calendar on iPhone and 2 PCs?

    Here's what I want to accomplish on the iPhone, at as little (no) cost as possible: 1. Personal comcast.net email account. I currently have this configured with "Delete from server" set to "When removed from inbox". At least this way if I read and de

  • PDF Preview Handler Issue

    Hi I have a Windows 7 (64-bit) / Outlook 2007 / Adobe Reader XI setup where I can view PDF files via web browsing (IE) but not through Outlook attachments or Windows Explorer. I've tried... What appears to be the common registry fix / validation and

  • Missing material line in Inbound delivery

    Hi All, Outbound delivery and inbound delivery are created successfuly, but in the inbound there is no material appear.  There is only 1 material in the outbound.  What is the cause of the issue and how to fix the inbound issue? Thanks.

  • Welcome to iWeb '09! 'This version requires updates...'

    I was previously using iWeb 1.1 on a MBP running Leopard, and when I got a new Mac Mini, it came with iWeb 3.0.3. I placed the old domain file into the iWeb folder per the instructions here: http://docs.info.apple.com/article.html?path=iWeb/3.0/en/69