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

Recording

Former Member
0 Likes
816

hi,

When i have run the shdb recording for material ...i got something like bdc_subscr aprt from okcode and fields.

what does bdc_subcr mean. Do I need to write perform fill_bdc_field using for this also ????

plz help

4 REPLIES 4
Read only

Former Member
0 Likes
741

Hi,

<b>No, you do not need to write "perform fill_bdc_field" for BDC_SUBSCR. Actually this code is for sub screens in MM01.</b>

<b>"BDC_SUBRC" is for subscreen on transaction MM01</b>.

Let's say you display one material in MM03. Look at the "<b>Basic data1</b>" screen of this material. <b>You will see that there are subscreen</b> called <b>'general data</b>', <b>'material authorization group'</b> , ' <b>dimensions/EANs'</b> etc. These are subscreen areas which you see in BDC. You do not need to code them.

Also, after you do the recording using SHDB, you can generate the test program from here. Generate the test program for your recording, you will se that SAP also does not include 'BDC_SUBRC' in the program.

I hope i clarify your doubt. Let me know if you still have question.

Regards,

RS

Read only

0 Likes
741

thanks guys.

How do i generate the test program?

Read only

0 Likes
741

You get an option in SHDB to generate a program.

+Before you can generate a data transfer program, you must record the transactions using which the data is imported into the R/3 System. You use the batch input recorder to do this.

Procedure

Display the initial screen of the batch input recorder (Transaction SHDB).

Choose Overview.

The system displays an overview of all recordings.

Position the cursor on the relevant recording and choose Create program.

On the following screen, specify a program name.

You can also choose how the maintained field contents of the recorded screens are to be filled:

· Transfer the values that were used during the recording. If you require a flexible data transfer, you must modify this program.

· Set the parameters of the input values to be maintained and import these values from a data file. To set the parameters, the system creates a data structure and imports the data records from an external file into this data structure. The program assumes that the external file has been adapted to this data structure.

If you have decided to set parameters for the input values to be maintained, it is useful if you create a test file when you generate the program. To do this, flag the checkbox and enter a name for the test file. For more information, see creating a test file.

Choose Continue.

The system displays the attribute screen of the program editor. Choose the relevant attributes here and save the program.

Result

You have now generated a data transfer program that you can use to import data into the R/3 System. The program can execute the data transfer using batch input or CALL TRANSACTION .+

Regards

Read only

RaymondGiuseppi
Active Contributor
0 Likes
741

Thats "subscreen" and yes you have to write it to dbcdata too, value will look like

"SAPLKACB                                0003BLOCK1"

<i>For the batch input processing, the system assigns all field names to one screen, the main screen. Field names are not assigned to embedded screens, that is, to subscreens.

However, the screen simulation requires information about the subscreens to be called. This information is retrieved from the batch input BDC_SUBSCR field.

Without the BDC_SUBSCR field values, the fields that are located in the relevant subscreens cannot be simulated. For the batch input processing, the BDC_SUBSCR fields are irrelevant.</i> (From OSS <a href="https://service.sap.com/sap/support/notes/728079">Note 728079 - Batch input analysis: Display error in screen simulation</a>

Regards