Application Development 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: 

Routings Standard Values

Former Member
0 Kudos

I created a recording of transaction CA and generated a program from it. I'm having trouble getting the standard values for setup, machine and labor in screen 1010. The actual fields I'm populating are in subscreen 1211. I'm not able to get any values into the three standard value fields VGW01, VGW02 or VGW03. This is very frustrating and any help will be greatly appreciated.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Joseph,

Try to do the recording again and fill the values for the setup,machine and labor in the operation screen i.e.,screen number 1010.

Hope this helps you.

Regards,

venkatalakshmi

10 REPLIES 10

Former Member
0 Kudos

Hi Joseph,

Try to do the recording again and fill the values for the setup,machine and labor in the operation screen i.e.,screen number 1010.

Hope this helps you.

Regards,

venkatalakshmi

Former Member
0 Kudos

Thank you for your reply. I forgot to mention I'm working on release 4.6b and those fields are not available for input on that screen. On my prior project which was 4.7 that is exactly what I did to load those fields with no problem. If anyone has an idea for 4.6b I will welcome any suggestions.

former_member214131
Active Contributor
0 Kudos

Hello,

Check out this sample code. This works. You can :

report YSDKFDS no standard page heading line-size 255.

*include bdcrecx1.

DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

parameter: p_plnnr like plas-plnnr obligatory.

parameter: p_plnal like plas-plnal obligatory.

parameter: p_vornr like plpo-vornr obligatory.

parameter: p_VGW01(11).

parameter: p_VGW02(11).

parameter: p_VGW03(11).

start-of-selection.

  • perform open_group.

perform bdc_dynpro using 'SAPLCPDI' '1010'.

perform bdc_field using 'BDC_CURSOR'

'RC271-PLNNR'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RC27M-MATNR'

''.

perform bdc_field using 'RC271-PLNNR'

  • '50000001'.

p_plnnr.

perform bdc_field using 'RC271-STTAG'

'01.07.2005'.

perform bdc_field using 'RC271-PLNAL'

  • ''.

p_plnal.

perform bdc_dynpro using 'SAPLCPDI' '1400'.

perform bdc_field using 'BDC_CURSOR'

'PLPOD-VORNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'=OSEA'.

perform bdc_field using 'RC27X-ENTRY_ACT'

'1'.

perform bdc_dynpro using 'SAPLCP02' '1010'.

perform bdc_field using 'BDC_CURSOR'

'RC27H-VORNR'.

perform bdc_field using 'BDC_OKCODE'

'=ENT1'.

perform bdc_field using 'RC27H-VORNR'

  • '0020'.

p_vornr.

perform bdc_dynpro using 'SAPLCPDI' '1400'.

perform bdc_field using 'BDC_CURSOR'

'PLPOD-VORNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'=VOD1'.

perform bdc_field using 'RC27X-ENTRY_ACT'

'2'.

perform bdc_field using 'RC27X-FLG_SEL(01)'

'X'.

perform bdc_dynpro using 'SAPLCPDO' '1200'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

perform bdc_field using 'PLPOD-VGW01'

  • '1'.

p_VGW01.

perform bdc_field using 'PLPOD-VGW02'

  • '1'.

p_VGW02.

perform bdc_field using 'PLPOD-VGW03'

  • '1'.

p_VGW03.

*perform bdc_transaction using 'CA02'.

call transaction 'CA02' using BDCDATA mode 'A'.

*perform close_group.

----


  • Start new screen *

----


FORM BDC_DYNPRO USING PROGRAM DYNPRO.

CLEAR BDCDATA.

BDCDATA-PROGRAM = PROGRAM.

BDCDATA-DYNPRO = DYNPRO.

BDCDATA-DYNBEGIN = 'X'.

APPEND BDCDATA.

ENDFORM.

----


  • Insert field *

----


FORM BDC_FIELD USING FNAM FVAL.

  • IF FVAL <> NODATA.

CLEAR BDCDATA.

BDCDATA-FNAM = FNAM.

BDCDATA-FVAL = FVAL.

APPEND BDCDATA.

  • ENDIF.

ENDFORM.

Hope this helps you.

Best Regards, Murugesh AS

Former Member
0 Kudos

Thank you Murugesh. Will this work using transaction CA01? I'm doing the initial data conversion for routings.

0 Kudos

Hello,

Then on similar lines you need to record for CA01 also.

Hope this helps you. If you need this in 'Create' mode I would suggest you to use DI program 0170/0001/RCPTRA01/B in LSMW.

If your question is answered, please close the thread.

Regards, Murugesh AS

Former Member
0 Kudos

Thank you all for your input. I've decided to give LSMW one more try. I'm getting close but I have this one last issue when running the direct input program. I'm getting the error that a group cannot be determined for the material/plant. I don't know how to correct for this so I could use some help here.

Thank you,

Joe

0 Kudos

Hello,

Little more details about your LSMW / Data structure and the step where you are getting this error would help in determining the error.

Regards, Murugesh AS

Former Member
0 Kudos

Thank you Murugesh for your continued help in this matter. At the point where I start the direct input program I get the error report stating that the group cannot be determined for material/plant. I don't understand why I get this error since with the same material/plant I can go in and create a routing in CA01. You know now that I'm looking at the report I see the material number without the preceding zeros. I will try zero filling this field and try again. I hope this is the answer.

0 Kudos

Hi,

When you think of going for LSMW then

using direct input program RCPTRA02 is a better option.

0 Kudos

hi joseph,

i am working on routing and iam using LSMW direct input method.iam getting an error " Group cannot be determined for material and plant ".i know you had the same problem how you overcome it.let me know