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: 

How to find the internal table to a list being displayed in CM38?

Former Member
0 Kudos
188

Hi all,

I am trying to create a BDC program for tcode CM38.

So after I execute the report with the necessary input parameters and view as "Standard Overview", I want to capture some of the data in the output list which are the requirement column and period column into my own table in the BDC program, and repeat the process again for other work centers.

Is it possible to capture this data into an internal table in my BDC program?

My problem is right now, I am not able to find the correct table or internal table that contains the data in the list. How can I find the the table being used to store the data in the list?

Structure RC65L is being used to hold the individual data, but I am not seeing how the data is being loaded to this structure. Going further into the program, I can see table PERTEXT and KAPGESBEL are holding the data that I need. But these tables are in one of the modules in the report and outside of the module, these tables are not accessible.

Anyone have any ideas on how to do this?

Thanks,

Shafiq

1 REPLY 1

Former Member
0 Kudos
68

Hi,

Another thing which I'm not sure of, the screen for CM38, has fields for "Planning scenario", "Work Center", "Capacity planner group" and "Plant". But if I go see the technical details of these fields, they do not have the screen field value. It only has a data element. So Plant for example has WERKS_D.

In my BDC program, I am using this WERKS_D and ARBPL for work center, but the screen is not accepting the value that I have inserted. It is just going to the point where I press the standard overview button "LIKU".

Code snippet:

PERFORM BTCI_DYNPRO USING 'SAPMSSY0' '0120'.

PERFORM BTCI_FELD USING 'ARBPL' CM38REC-ARBPL.

PERFORM BTCI_FELD USING 'WERKS_D' CM38REC-WERKS.

PERFORM BTCI_FELD USING 'BDC_OKCODE' 'LIKU'.

FORM BTCI_DYNPRO USING PROGRAMM DYNPRO.

CLEAR BATCHDATEN.

BATCHDATEN-PROGRAM = PROGRAMM.

BATCHDATEN-DYNPRO = DYNPRO.

BATCHDATEN-DYNBEGIN = 'X'.

APPEND BATCHDATEN.

ENDFORM. " BTCI_DYNPRO

FORM BTCI_FELD USING FELD WERT.

CLEAR BATCHDATEN.

WRITE FELD TO BATCHDATEN-FNAM.

WRITE WERT TO BATCHDATEN-FVAL.

APPEND BATCHDATEN.

ENDFORM. " BTCI_FELD

Anyone have any ideas?