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

bdc qm

Former Member
0 Likes
633

bdc for quality level change. I have been trying to change the quality level using bdc.

When there is a material with no vendor number, there is a popup alv list that come up to select the line. how do i choose the line without the vendor number.When i use the code below it only updates the material with no vendor number.The materials with vendor numbers are ignored. If the set parameter id are not included it does not update the 1st screen for the vendor number.

SET PARAMETER ID 'QLD' FIELD 'X'.

sort tab by lifnr ascending.

loop at tab.

SET PARAMETER ID 'WRK' FIELD tab-werks.

SET PARAMETER ID 'QLM' FIELD tab-matnr.

if tab-lifnr CO '0'.

move space to tab-lifnr.

SET PARAMETER ID 'QLL' Field space.

perform dynpro using: 'X' 'SAPMQDQL' '0100',

  • ' ' 'QDQL-WERKS' 'tab-werks',

' ' 'BDC_OKCODE' '=NEXT'.

perform dynpro using: 'X' 'SAPLSLVC_FULLSCREEN' '0700',

' ' 'BDC_OKCODE' '=&ONT'.

perform dynpro using: 'X' 'SAPMQDQL' '0120',

  • ' ' 'BDC_CURSOR' 'QDQL-PRSTUFENAE(01)',

' ' 'QDQL-PRSTUFENAE(01)'

tab-level,

' ' 'BDC_OKCODE' '=SAVE'.

else.

SET PARAMETER ID 'QLL' Field tab-lifnr.

perform dynpro using: 'X' 'SAPMQDQL' '0100',

  • ' ' 'QDQL-WERKS' 'tab-werks',

' ' 'BDC_OKCODE' '=NEXT'.

perform dynpro using: 'X' 'SAPMQDQL' '0120',

' ' 'BDC_CURSOR' 'QDQL-PRSTUFENAE(01)',

' ' 'QDQL-PRSTUFENAE(01)' tab-level,

' ' 'BDC_OKCODE' '=SAVE'.

endif.

bdc for quality level change. I have been trying to change the quality level using bdc.

When there is a material with no vendor number, there is a popup alv list that come up to select the line. how do i choose the line without the vendor number.When i use the code below it only updates the material with no vendor number.The materials with vendor numbers are ignored. If the set parameter id are not included it does not update the 1st screen for the vendor number.

SET PARAMETER ID 'QLD' FIELD 'X'.

sort tab by lifnr ascending.

loop at tab.

SET PARAMETER ID 'WRK' FIELD tab-werks.

SET PARAMETER ID 'QLM' FIELD tab-matnr.

if tab-lifnr CO '0'.

move space to tab-lifnr.

SET PARAMETER ID 'QLL' Field space.

perform dynpro using: 'X' 'SAPMQDQL' '0100',

  • ' ' 'QDQL-WERKS' 'tab-werks',

' ' 'BDC_OKCODE' '=NEXT'.

perform dynpro using: 'X' 'SAPLSLVC_FULLSCREEN' '0700',

' ' 'BDC_OKCODE' '=&ONT'.

perform dynpro using: 'X' 'SAPMQDQL' '0120',

  • ' ' 'BDC_CURSOR' 'QDQL-PRSTUFENAE(01)',

' ' 'QDQL-PRSTUFENAE(01)'

tab-level,

' ' 'BDC_OKCODE' '=SAVE'.

else.

SET PARAMETER ID 'QLL' Field tab-lifnr.

perform dynpro using: 'X' 'SAPMQDQL' '0100',

  • ' ' 'QDQL-WERKS' 'tab-werks',

' ' 'BDC_OKCODE' '=NEXT'.

perform dynpro using: 'X' 'SAPMQDQL' '0120',

' ' 'BDC_CURSOR' 'QDQL-PRSTUFENAE(01)',

' ' 'QDQL-PRSTUFENAE(01)' tab-level,

' ' 'BDC_OKCODE' '=SAVE'.

endif.

2 REPLIES 2
Read only

Former Member
0 Likes
550

Deepali,

I dont think , u need a BDC for changing the Quality Level.

U should probably dealling with the Database Table QDQL.

In the ALV, get the rows to be modified with NEW QUALITY LEVEL. Modify the ROWs/RECORDs in the Table QDQL.

If u go with ALV Grid, then u wont have any problem in do this!!!!!!

Please let me know if u require more help!!!1

Thanks

Kam

Message was edited by: Kam

Read only

Former Member
0 Likes
550

sorry for the late reply but this is not an option and only bdc is the option i have. Please let me know if you have any ideas as the screens are set dynamically and i do not know if this is causing the problem.

Set parameter ids for the 1st screen changes the values on the 1st screen screen but the value of QDQL-PRSTUFENAE on screen 102 does not change and all the records will be updated as per the 1 record level value.

Also if the vendor is blank the i select the 1 record from the alv pop up list but the remaining records are not updated.