Any BAPI available for Tcode MSC2N

Hello,
Very Good Afternoon,
I need to change the few vlaues in the t-code MSC2N.
I need to change the City of Origin and Reg Of orign for few Batch numbers
in Basic Data1 tab.
There are around 1000 batch numbers which needs this change
Is there any BAPI available to go ahead..
Any suggestions will be appreciated.
Regards,
Kittu

Hi, You can update classification for a batch using the following code.
But first, you'll need to find out that the batch management is cross-plant or plant dependant.
If it is cross plant then plant(WERKS) is not part of the key to BAPI_OBJCL_CONCATENATEKEY.
CLEAR: objectkey, objectkeytable, objectkeytable[],
           allocvaluesnumnew, allocvaluesnumnew[],
           return.
    objectkeytable-key_field = 'MATNR'.
    objectkeytable-value_int = matnr.
    APPEND objectkeytable.
    objectkeytable-key_field = 'CHARG'.
    objectkeytable-value_int = charg.
    APPEND objectkeytable.
* Only if Batch management is Plant dependant
    objectkeytable-key_field = 'WERKS'.
    objectkeytable-value_int = werks.
    APPEND objectkeytable.
    CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
      EXPORTING
        objecttable    = objecttable
      IMPORTING
        objectkey_conc = objectkey
      TABLES
        objectkeytable = objectkeytable
        return         = return.
    allocvaluesnumnew-charact = "characteristic name goes here".
    allocvaluesnumnew-value_from ="characteristic value goes here".
    APPEND allocvaluesnumnew.
    allocvaluesnumnew-charact =  "characteristic name goes here".
    allocvaluesnumnew-value_from =  "characteristic value goes here".
    APPEND allocvaluesnumnew.
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
      EXPORTING
        objectkey                = objectkey
        objecttable              = objecttable
        classnum                 = classnum
        classtype                = classtype
*   STATUS                   = '1'
*   STANDARDCLASS            = STANDARDCLASS
*   CHANGENUMBER             = CHANGENUMBER
*   KEYDATE                  = SY-DATUM
*   NO_DEFAULT_VALUES        = ' '
* IMPORTING
*   CLASSIF_STATUS           = CLASSIF_STATUS
      TABLES
        allocvaluesnumnew        = allocvaluesnumnew
        allocvaluescharnew       = allocvaluescharnew
        allocvaluescurrnew       = allocvaluescurrnew
        return                   = return
* Do not forget to commit, otherwise changes would not take effect.
commit work.
Regards,
Hashir Ahmed

Similar Messages

  • Any BAPI available for mass creation/change/delete for dependency net

    Hi guys,
    Any BAPI available for mass creation/change/delete for constraints in dependency net. I mean any uploading option in mass for creation, change and delete.
    Regds
    Regds

    Hi,
    Check if the below FM's meet your need:
    CAMA_CNET_CONSTRAINT_MAINTAIN
    CAMA_CONSTRAINT_NET_MAINTAIN
    CAMA_DEPENDENCY_MAINTAIN
    Regards,
    Vivek

  • Any bapi available for Create Employee Trip

    hi ,
    please tell me for Create Employee Trip any bapi is available.
    if it is there means please tell me.

    Check this one -
    BAPI_TRIP_CREATE_FROM_DATA
    Regards,
    Amit

  • Is there any BAPI available for sales order creation with reference?

    Hi Experts,
    My requirement is to create sales order with reference for order type.
    Now my billing document number already contains the two items
    one is correct and another is zero quantity.
    I want to create order with reference of billing document but not with zero quantity item.
    Which BAPI I should use and what to pass to ignore zero quantity item?
    Regards,
    RH

    Hi Ronny,
    Try using BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Shraddha

  • Any BAPI's for  OKB9  transaction

    i want to  do  odifications in OKB9  transaction is there any BAPI  available. as this  is a enjoy transaction not  possible to  do bdc.

    There is  one requirement where  the client  wants  to maintain the some  customizing  transactions for plant  and LEs not manually but through a transaction.It will  compare other boxes  for  a paticular configuration and if not the transaction  will create transport for the same in devlopment box.
    OKB9 is a  enjoy transaction for which  bdc  is not  possible  so  i am searching for  other alternatives.
    please suggest .

  • Is any software available for face detection to unlock screen?

    is any software available for face detection to unlock screen?

    No. Third party software annot control the operating system.

  • Any PIP available for Product Data Hub(PIM) integration with AppsR12

    Dear All,
    We can a requirement to one of our customer, we need to implement MDM(CDH,PIM) and we need to integrate this with other spoke systems like EBS.
    we want to know whether is there any PIP available for MDM(PDH or PIM) integration with Oracle Apps R12 with any other system and our SOA environment is SOA 11g.
    Thansk in Advance
    Regards
    Murali

    Hi Shamshad
    We also need to know AIA 3.1 MDM (PDH) PIP's were released for 11g FMW. AIA 2.5 MDM PIP's uses 10g AS (SOA 10g).
    Edelivery doesn't have MDM PIPS listed for AIA 3.1 or under AIA 11g. It has foundation pack but not specific to MDM PIP for Product that I'm looking for.
    Any help appreciate it.
    Thanks, Nara

  • Are there any patches available for Dev 21

    Hi,
    We've been working with Forms50 and Reports 25 under win95 for
    quite a while and have noticed occasional problems:
    - A program abort due to page fault protection under win95.For
    example, R30DES32 : R30LIB.dll.
    - You issue compile all and get and error that forms is not
    able to go to (goto error button).
    - A compile error that requires login in and out and
    recompile to fix.
    I wonder if
    - there are any patches available for Dev 21,
    - i have a memory shortage problem,
    - these are (especially case 1) win95 problems.
    Please help will be welcomed ................!
    null

    Where can I find them?
    thanks in advance,
    Xiaolin
    Jason Judge (guest) wrote:
    : There are patches for the 32bit v2.1 Windows environments
    dated:
    : 24 June 98
    : 5 August 98
    : 16 September 98
    : 21 Octomer 98
    : 21 February 99
    : and I believe a new one is just out.
    : Take your pick!
    : JJ
    : Luis Medina (guest) wrote:
    : : Hi,
    : : We've been working with Forms50 and Reports 25 under win95
    for
    : : quite a while and have noticed occasional problems:
    : : - A program abort due to page fault protection under
    : win95.For
    : : example, R30DES32 : R30LIB.dll.
    : : - You issue compile all and get and error that forms is not
    : : able to go to (goto error button).
    : : - A compile error that requires login in and out and
    : : recompile to fix.
    : : I wonder if
    : : - there are any patches available for Dev 21,
    : : - i have a memory shortage problem,
    : : - these are (especially case 1) win95 problems.
    : : Please help will be welcomed ................!
    null

  • I want to communicate with J1850 system. Is there any hardware available for this?

    I would like to communicate with a J1850 system. I am wondering whether there is any hardware available for this similar to CAN. Is there a possibility to find exampls for this kind of communication.

    On Fri, 16 Jul 2004 14:02:48 -0500, Mudda wrote:
    > I would like to communicate with a J1850 system. I am wondering whether
    > there is any hardware available for this similar to CAN. Is there a
    > possibility to find exampls for this kind of communication.
    I'm still new in this area but I will try to help. AFAIK, J1850 comes in
    two flavors: VPW and PWM. You can purchase an adapter that converts RS232
    signals to those required by J1850 for about $100.
    I suggest using an adapter from Scantool.net. I say this because I
    have one and it's very easy to use. It's flexible enough to use with a
    terminal (hyperterminal, minicom, etc.) or to interface with LabVIEW, as I
    have done for you already. Go to OpenG.org for the download:
    http://openg.org/tiki/tiki-index.
    php?page=On+Board+Diagnostic+-+OBDII
    Let me know if it works for you. The interface is a little weak but the
    VIs should clue you in on how to handle communications. I plan to add
    another update in a few days so check the site regularly. I would
    appreciate your feedback.
    -kevin

  • Any books available for OS X Leopard Server?

    Does anyone know if there are any books available for OS X Leopard Server? I can find some for Tiger but not Leopard. Thanks

    Aside from the pretty cool PDF manuals Apple post on their site, I ordered this recently:
    http://www.amazon.co.uk/MAC-Server-Essentials-Apple-Training/dp/0321496604/ref=p dbbs_sr2?ie=UTF8&s=gateway&qid=1202853792&sr=8-2
    I know it's in the UK Store, but you may be able to get hold of it anyway. It's also focused on ACTC training, but I have always found these books excellent resources for learning OS X Server.
    Hope that helps a little,
    Paul

  • Any upgrades available for Mac OSX 10.5.8?????

    are ther any upgrades available for download for Mac OSX 10.5.8????

    Welcome to the Apple Support Communities
    Mac OS X 10.5.8 is Leopard. Mac OS X Leopard was launched in 2007 and is now discontinued, so Apple isn't releasing more updates for it.
    Your only option is to upgrade to Mac OS X Snow Leopard, if your Mac is compatible > http://support.apple.com/kb/sp575 You can buy it in the Apple Online Store > http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • Is BAPI available for ME32K?

    Hi
    Is BAPI available for ME32K?
    Thanks in advance
    With regards,
    Malli B

    Try with the function module BAPI_AGREEMENT_MAINTAIN.
    Regards,
    Kiran Bobbala

  • Any ViewLet available for SOA Suite or new feature of jdev 10131 ?

    Hi
    thank you for reading my post
    is there any viewlet available for SOA feature of new version of Jdeveloper 10131 ?
    thanks

    yes there is -
    on my blog I talk about some of the features in JDev
    http://clemensblog.blogspot.com/2006/03/heads-down-for-bpelpm-1013-nightly.html
    and
    http://clemensblog.blogspot.com/2006/06/bpel-pm-10131-new-features-part-2.html
    Security
    http://clemensblog.blogspot.com/2006/04/bpel-1013-new-security-features.html
    and on the webinar site you can find the feature preview
    http://www.oracle.com/technology/products/ias/bpel/htdocs/webinars.html
    search for 10.1.3 feature preview
    hth clemens

  • Pls suggest right BAPI  FOR  Tcode(MSC2N)

    Hi All,
    I am uploading the data(characteristic values) through the Tcode MSC2N When I am trying to do this through bdc it's not allowing to change characteristic values?What will be the problem?we can use the BAPI BAPI_OBJCL_CHANGE but this bapi will only change the characteristic values but I also need to change date1 field(this is there in the Basic data2in the same transaction MSC2N) Can any body suggest how to do this please?
    Thanks&Regards
    Mahesh

    Hay Mahesh
    Try with the following BAPI's
    BAPI_OBJCL_CREATE              Classification BAPI: Create Assignment
    BAPI_OBJCL_CREATE_KEY          BAPI for Classification: Create Assignment (Key)
    Thanks & regards
    Sreenivasulu P

  • Any BAPI/FM for MBSU ?

    I am trying to find a BAPI/FM for MBSU transaction, I browsed through the forums and found none. The below thread referred about my requirement exactly but the topic never went ahead.
    Re: Looking for either BAPI/FM for MBSU
    Is there any such BAPI or FM available ?

    No such BAPI

Maybe you are looking for

  • Can't install FCP 5

    I just purchased a new MacBook Pro and was getting ready to install FCP 5 (and later upgrade to 6), but when I click on the installation icon I get this message: " You can't ope the application Final Cut Studio.mpkg because the PowerPC applications a

  • No signal from desktop

    hello everyone, my acer am3400-u2505 shows no signal to the monitor. any suggestions?

  • Transport of namespace to different Software Component

    Hi friends, I have designed a interface in test software componet now i need to export to another software componet in the same system. i mean in development system onley,, Thanks and Regards Vijay

  • Timeout for HR Saved For Later

    Hi Is there any way to set timeout for workflow item "Saved For Later"? It seems that we have numerous records with status "Open" under item type "HRSFL". System is keeping records age more than 1 year. I'm looking for the correct way to remove these

  • Does HP Office Jet Pro 8610 Support Adobe .PDF Files?

    Greetings, I'm thinking of upgrading from an HP Photosmart Premium C309g-m All-In-One to an HP Office Jet Pro 8610 All-in-One.  I was able to create and use .pdf files on the C309g-m.  I have Adobe Reader on my computer.  Will I be able to do the sam