Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Batch derivation

Former Member
0 Likes
705

Hi Friends,

I need help regarding the available FM/BADI/BAPI for Batch Maanagment.........for replacting the characterstics of batch during process.

Please give me an idea for that one.

Regards,

Ricky

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
584

Hi,

May i know the process where you are updatig the characteristics so that can suggest a badi ...

or else do in this way

IT_OBJECT-KEY_FIELD = 'MATNR'.

IT_OBJECT-VALUE_INT = WA_FINAL-MATNR.

APPEND IT_OBJECT.

CLEAR IT_OBJECT.

IT_OBJECT-KEY_FIELD = 'CHARG'.

IT_OBJECT-VALUE_INT = WA_FINAL-CHARG.

APPEND IT_OBJECT.

CLEAR IT_OBJECT.

---- call bapi for concatination if initial success -


CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'

EXPORTING

OBJECTTABLE = 'MCH1'

IMPORTING

OBJECTKEY_CONC = V_OBJECTKEY

TABLES

OBJECTKEYTABLE = IT_OBJECT

RETURN = IT_RETURN.

fill the character internal table

WHEN 'YEAR'.

IF NOT WA_FINAL-YEAR IS INITIAL.

IT_CHAR-CHARACT = WA_HEADER-SAPCHAR.

IT_CHAR-VALUE_CHAR = WA_FINAL-YEAR.

APPEND IT_CHAR.

CLEAR IT_CHAR.

ENDIF.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

OBJECTKEY = V_OBJECTKEY

OBJECTTABLE = 'MCH1'

CLASSNUM = WA_FINAL-CLASS " V_CLASSNUM

CLASSTYPE = '023'

STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

KEYDATE = SY-DATUM

NO_DEFAULT_VALUES = 'X'

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

ALLOCVALUESNUMNEW = IT_NUM

ALLOCVALUESCHARNEW = IT_CHAR

ALLOCVALUESCURRNEW = IT_CURR

RETURN = IT_RETURN .

Thanks,

Shailaja Ainala.

3 REPLIES 3
Read only

Former Member
0 Likes
585

Hi,

May i know the process where you are updatig the characteristics so that can suggest a badi ...

or else do in this way

IT_OBJECT-KEY_FIELD = 'MATNR'.

IT_OBJECT-VALUE_INT = WA_FINAL-MATNR.

APPEND IT_OBJECT.

CLEAR IT_OBJECT.

IT_OBJECT-KEY_FIELD = 'CHARG'.

IT_OBJECT-VALUE_INT = WA_FINAL-CHARG.

APPEND IT_OBJECT.

CLEAR IT_OBJECT.

---- call bapi for concatination if initial success -


CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'

EXPORTING

OBJECTTABLE = 'MCH1'

IMPORTING

OBJECTKEY_CONC = V_OBJECTKEY

TABLES

OBJECTKEYTABLE = IT_OBJECT

RETURN = IT_RETURN.

fill the character internal table

WHEN 'YEAR'.

IF NOT WA_FINAL-YEAR IS INITIAL.

IT_CHAR-CHARACT = WA_HEADER-SAPCHAR.

IT_CHAR-VALUE_CHAR = WA_FINAL-YEAR.

APPEND IT_CHAR.

CLEAR IT_CHAR.

ENDIF.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

OBJECTKEY = V_OBJECTKEY

OBJECTTABLE = 'MCH1'

CLASSNUM = WA_FINAL-CLASS " V_CLASSNUM

CLASSTYPE = '023'

STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

KEYDATE = SY-DATUM

NO_DEFAULT_VALUES = 'X'

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

ALLOCVALUESNUMNEW = IT_NUM

ALLOCVALUESCHARNEW = IT_CHAR

ALLOCVALUESCURRNEW = IT_CURR

RETURN = IT_RETURN .

Thanks,

Shailaja Ainala.

Read only

0 Likes
584

Hi,

Thnaks for your update........its helpful me to up a limit.

I am using BADI DERIVATION...........for BATCH derivation ,so can you help me in that matter.

Regards,

Ricky

Edited by: Ricky Maheshwari on Sep 15, 2009 9:32 AM

Read only

Former Member
0 Likes
584

I got solution through BADI Implement itself.

Regards,

Ricky