Skip to Content
author's profile photo Former Member
Former Member

Batch Classification

HI friends,

I posted the stock in some batch, now i want to assign classification(charectorstics) to that posted batch,

plz if u know any FM or BAPI to do this, help me out by sending some sample coding.

Thanks,

Gururaj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2008 at 01:50 PM

    Am not sure, whether you want to assign all the characteristics to a material or change some of the characteristics. Am sending you both the function modules; Try out

    BAPI_OBJCL_CREATE and

    BAPI_OBJCL_CHANGE

    For updation:

    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'

    EXPORTING

    objectkey = Full material number

    objecttable = 'MARA'

    classnum = class name

    classtype = '023'

    unvaluated_chars = c_true

    TABLES

    allocvaluesnum = lt_num

    allocvalueschar = lt_char

    allocvaluescurr = lt_curr

    return = lt_ret.

    Now modify the required characteristics in thelt_num, lt_char, lt_curr and call the below function module to update it

    CALL FUNCTION 'BAPI_OBJCL_CHANGE'

    EXPORTING

    objectkey = Full material number

    objecttable = MARA

    classnum = class name

    classtype = '023'

    TABLES

    allocvaluesnumnew = lt_num

    allocvaluescharnew = lt_char

    allocvaluescurrnew = lt_curr

    return = lt_ret.

    If it is successful in updation callthe below FM

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    Regards,

    Kiran Bobbala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2008 at 01:56 PM

    Hello

    1. For creating - BAPI_OBJCL_CREATE

    2. For change - BAPI_OBJCL_CHANGE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2008 at 07:06 AM

    i got solution,

    thanks for all who are all replied

    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.