Skip to Content
avatar image
Former Member

Manage different transaction types for SCs

Dear Experts,

Is there a way to manage different purchase requisition types as transaction types on SRM?

I have created 2 different SC types with different number ranges. However, when i create a SC from the web I couldnt see a way to choose from a match code or drop down list to determine which type.

Thanks in advance,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 07, 2006 at 08:22 AM

    Hi,

    You cannot select the documentype in SRM from the sreen.

    I know it is possible in ECC but not in SRM.

    The document type can be determined in the background but not in foreground.

    Kind regards,

    Yann

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 09, 2006 at 04:31 PM

    Hello, you might change form process_type_get in FG BBP_SC_APP

    Originally the form is like this

    &----


    *& Form process_type_get

    &----


    • process type: currently only simple determination, take first hit

    • (not via BSA attribut, this only determines process/document type

    • of subsequent object)

    ----


    FORM process_type_get CHANGING ev_process_type TYPE crmt_process_type

    ev_error like sy-msgty.

    STATICS: sv_process_type TYPE crmt_process_type.

    DATA: lt_bbp_proctype LIKE bbp_proctype_f4 OCCURS 0 WITH HEADER LINE.

    CLEAR: ev_process_type, ev_error.

    IF sv_process_type IS INITIAL.

    CALL FUNCTION 'BBP_HELP_VALUE_PROC_TYPE'

    EXPORTING

    dialog = gc_no

    object_type = c_shop

    TABLES

    help_values = lt_bbp_proctype

    EXCEPTIONS

    nothing_found = 1

    OTHERS = 2.

    IF sy-subrc <> 0.

    ev_error = c_msgty_a.

    EXIT.

    ELSE.

    READ TABLE lt_bbp_proctype INDEX 1.

    sv_process_type = lt_bbp_proctype-process_type.

    ENDIF.

    ENDIF.

    ev_process_type = sv_process_type.

    ENDFORM. " process_type_get

    You see there is no dialog while calling FM BBP_HELP_VALUE_PROC_TYPE, if you change the gc_no in gc_yes while calling this FM you will be asked what process type you want to use. The VALUE import parameter gives you the choosen process type.

    Test it 2 times but at our side it worked 😊

    Regards, Luciano.

    Add comment
    10|10000 characters needed characters exceeded