cancel
Showing results for 
Search instead for 
Did you mean: 

Common quality info record

former_member512784
Participant
0 Kudos

For creating a common quality info record for all revision level, I implemented a Badi called QB_Q_INFO_RECORD.

Can anyone give me coding to include in the method, already I tried below coding but its not working.

CALL FUNCTION 'REVISION_LEVEL_SELECT'

    EXPORTING

      datuv              = sy-datum

      matnr              = i_matnr

    IMPORTING

      arevlv             = IE_revlv

    EXCEPTIONS

      date_not_found     = 1

      ecn_not_found      = 2

      ecn_no_revision    = 3

      input_incomplete   = 4

      input_inconsistent = 5

      revision_not_found = 6

      version_not_found  = 7

      OTHERS             = 8.

Accepted Solutions (0)

Answers (1)

Answers (1)

anup_patil3
Active Contributor
0 Kudos

Hello EMJ,

If I'm not wrong...I've only given this code in one of your thread... But it's working perfectly for me.

Could you please explain what exactly you did & how, so that I can suggest, if any??

Regards,

Anup

former_member512784
Participant
0 Kudos

Hi Anup

I created quality info record for material which has no revision level, now the same material has been assigned with revision level A.

So I implemented the badi with said coding, but we are getting quality info record error message during the PO creation.

Please let me know if i made anything wrong.

anup_patil3
Active Contributor
0 Kudos

Hi EMJ,

When you said -''So I implemented the badi with said coding'', I want to know what exactly you did in SAP as a development??

Regards,

Anup

former_member512784
Participant
0 Kudos

Hi Anup

ABAPer implemented classic Badi: QB_Q_INFO_RECORD to ZQB_Q_INFO_RECORD in SE19.

In interfaces, inside method Q_INFO_KEY_CHANGE, the below code was pasted.

method IF_EX_QB_Q_INFO_RECORD~Q_INFO_KEY_CHANGE.

CALL FUNCTION 'REVISION_LEVEL_SELECT'

EXPORTING
datuv              = sy-datum
matnr              = i_matnr
IMPORTING
arevlv             = IE_revlv
EXCEPTIONS
date_not_found     = 1
ecn_not_found      = 2
ecn_no_revision    = 3
input_incomplete   = 4
input_inconsistent = 5
revision_not_found = 6
version_not_found  = 7
OTHERS             = 8.

endmethod.

anup_patil3
Active Contributor
0 Kudos

Hello EMJ,

You've exactly the same code as I've done in my system and it's working for me... 🙂

Just as a process, could you please check if this BAdI is 'ACTIVE' in your system ?? Coz then I don't see any other reason that it's not working at your end.

Regards,

Anup