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 program for CT04

Former Member
0 Likes
2,102

Hi All

I was trying to create a BDC for ct04(Material characteristics),but when i go to shdb and start a recording then i see the screen of ct04 has only 1 tab.To create a characteristics we need to fill in data in atleast 3 tabs,

Then just for a trial I started recording in NO BATCH INPUT mode and i could see all the tabs and was able to create a characteristics.

By name NO BATCH INPUT i assume that BDC is not possible with this type of recording,even then i tried to do a bdc but failed.

Now my question is whether BDC is possible with CT04 or not?

If not then what are other options(One is bapi)

I have gone through a some articles but couldnt find my answer.

Regards

Dinesh Patnaik

Moderator message - Please do not offer points or rewards

Edited by: Rob Burbank on Jul 29, 2010 12:32 PM

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,508

> Then just for a trial I started recording in NO BATCH INPUT mode and i could see all the tabs and was able to create a characteristics.

> By name NO BATCH INPUT i assume that BDC is not possible with this type of recording,even then i tried to do a bdc but failed.

So, you tried it and it works. NOBINPT parameter is used to execute the BDC with SY-BINPT system variable set to blank, as with interactive mode.

Don't be mistaken by its name, it's completely allowed to run a BDC with this option, though you may discover restrictions with the transaction functions.

The SY-BINPT variable has to be checked by the application when some of its user interfaces cannot be recorded and played using the BDC technology (*), and if this application was designed to work with BDC, so that it proposes another display or other function codes that are compatible with BDC. Sometimes, strangely, a transaction may better work with NOBINPT...

(*) Especially the control framework (see [wiki BDC FAQ - Controls|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-WhydoIgetCNTLERRORdumpduringrecordingorexecution%3F]) and table control scrolling (see [wiki BDC FAQ - scrolling|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F])

> Now my question is whether BDC is possible with CT04 or not?

> If not then what are other options(One is bapi)

> I have gone through a some articles but couldnt find my answer.

What do you mean, there's a BAPI for updating characteristics, you probably found it. What is the issue with it?

Note: generally speaking, always use the BAPI (if it exists) over the BDC.

9 REPLIES 9
Read only

Former Member
0 Likes
1,508

try to make the recording using trx:

(you cant access directly to this transactions....only via SM35 (create recording) or SHDB )

CT01 -> create characteristic

CT2 -> modify

CT03 -> view

regards, SebastiĆ”

Read only

0 Likes
1,508

Works fine.

Thank You

Anuj Dubey.

Read only

0 Likes
1,508

This is I am looking for..  thanks.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,509

> Then just for a trial I started recording in NO BATCH INPUT mode and i could see all the tabs and was able to create a characteristics.

> By name NO BATCH INPUT i assume that BDC is not possible with this type of recording,even then i tried to do a bdc but failed.

So, you tried it and it works. NOBINPT parameter is used to execute the BDC with SY-BINPT system variable set to blank, as with interactive mode.

Don't be mistaken by its name, it's completely allowed to run a BDC with this option, though you may discover restrictions with the transaction functions.

The SY-BINPT variable has to be checked by the application when some of its user interfaces cannot be recorded and played using the BDC technology (*), and if this application was designed to work with BDC, so that it proposes another display or other function codes that are compatible with BDC. Sometimes, strangely, a transaction may better work with NOBINPT...

(*) Especially the control framework (see [wiki BDC FAQ - Controls|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-WhydoIgetCNTLERRORdumpduringrecordingorexecution%3F]) and table control scrolling (see [wiki BDC FAQ - scrolling|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F])

> Now my question is whether BDC is possible with CT04 or not?

> If not then what are other options(One is bapi)

> I have gone through a some articles but couldnt find my answer.

What do you mean, there's a BAPI for updating characteristics, you probably found it. What is the issue with it?

Note: generally speaking, always use the BAPI (if it exists) over the BDC.

Read only

Former Member
0 Likes
1,508

@ sandra: I have already developed using bapi for create characteristics.thanks for the recomendation.But can you explain me more about no batch input mode?

@Sabastine will surely try what you said...:

Read only

0 Likes
1,508

> But can you explain me more about no batch input mode?

Tell me at least what the part of my detailed answer needs clarification. Or do you want more poetry?

Read only

0 Likes
1,508

I am done with BDC as well...!!!

Edited by: dineshpatnaik on Jul 30, 2010 8:40 AM

Read only

0 Likes
1,508

so, you asked me that (before replacing your text):

>> Sandra Rossi has written:

>> The SY-BINPT variable has to be checked by the application when some of its user interfaces cannot be recorded and played using the BDC technology (*), and if this application was designed to work with BDC, so that it proposes another display or other function codes that are compatible with BDC. Sometimes, strangely, a transaction may better work with NOBINPT...

>> (*) Especially the control framework (see wiki BDC FAQ - Controls) and table control scrolling (see wiki BDC FAQ - scrolling)

> dineshpatnaik has written:

> you said i need to check the system variable...to transfer data.i need more explanation on this..

Sorry about the confusion: by "the application", I meant "the application behind the called transaction", so I was not talking about your application (you don't have to test SY-BINPT), I was just explaining how transactions take into account the SY-BINPT system variable. When you call the transaction using CALL TRANSACTION ... USING ... (so, using BDC), you can decide whether SY-BINPT will be space or "X", and so you may influence the called transaction. See the wiki I mentioned for more information (and the SAP notes to which it refers).

Read only

Former Member
0 Likes
1,508

Hi Dinesh,

I'm having the same problem while recording CT04. Since the thread does not contain much details. Can you please share how you done with BDC? Even i record it in 'Not a Batch input session' mode, the screen automatically fetches the last viewed characteristics and opens it in change mode. I can't give another characteristics name.