cancel
Showing results for 
Search instead for 
Did you mean: 

Manage different transaction types for SCs

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

yann_bouillut
Active Contributor
0 Kudos

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