BDC OK CODE FOR ENTER NOT RECORDING
I m creating a BDC Programme for uploading OLD PO date from excel to SAP System.
All PO's are Service PO.
PO's date and Delivery Date is in back date.
My programme working fine.
But i have to press enter manually due to PO Date = back date and Delivery date is also back date.
SHDB unable to record this event.
How to record this event.
Is there any way to disable system messages during BDC Programme.
When I press enter two times my programme runs very well.
Kindly help me.
Its very much urgent.
Code is give below.
REPORT zbdcme21n
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : l_file TYPE rlgrap-filename.
DATA: e_group_opened.
PARAMETERS session RADIOBUTTON GROUP ctu. "create session
*DATA : session RADIOBUTTON GROUP ctu.
DATA : group(12). "group name of session
group = 'BDC'.
*PARAMETERS: user(12) DEFAULT sy-uname. "user for session in batch
DATA : user(12).
user = sy-uname.
*DATA : keep AS CHECKBOX. "' ' = delete session if finished
DATA : keep TYPE checkbox.
keep = 'X'.
*PARAMETERS: holddate LIKE sy-datum. "'X' = keep session if finished
DATA : holddate LIKE sy-datum.
holddate = sy-datum.
PARAMETERS ctu RADIOBUTTON GROUP ctu. "call transaction
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF i_tab OCCURS 0, "excel data stored in this file.
row TYPE alsmex_tabline-row,
col TYPE alsmex_tabline-col,
value TYPE alsmex_tabline-value,
END OF i_tab.
DATA : BEGIN OF wa_line1 OCCURS 0, "excel data stored in this file.
row TYPE alsmex_tabline-row,
col TYPE alsmex_tabline-col,
value TYPE alsmex_tabline-value,
srno TYPE i,
END OF wa_line1.
DATA : wa_line2 LIKE wa_line1 OCCURS 0 WITH HEADER LINE .
DATA : wa_hdr1 LIKE wa_line1 OCCURS 0 WITH HEADER LINE .
DATA : wa_hdr LIKE i_tab OCCURS 0 WITH HEADER LINE .
DATA : wa_line LIKE i_tab OCCURS 0 WITH HEADER LINE .
DATA : w_cnt TYPE i . "store total no of pos
DATA : w_hdr_counter VALUE 1. "for header line count
DATA : w_line_counter VALUE 1. "for Line Item Counter.
w_cnt = 0.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
PARAMETER: dataset TYPE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR dataset.
PERFORM upload_file.
*include bdcrecx1.
START-OF-SELECTION.
PERFORM process_itab.
*include bdcrecx1.
START-OF-SELECTION.
PERFORM open_group.
**********************start for header
w_hdr_counter = 1.
WHILE w_hdr_counter <= w_cnt.
PERFORM bdc_dynpro USING 'SAPMM06E' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06E-BEDAT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
READ TABLE wa_hdr1 WITH KEY col = 2 srno = w_hdr_counter.
PERFORM bdc_field USING 'EKKO-LIFNR'
wa_hdr1-value. "'800000'.
READ TABLE wa_hdr1 WITH KEY col = 3 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-BSART'
wa_hdr1-value. "'ZS'.
READ TABLE wa_hdr1 WITH KEY col = 4 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-BEDAT'
wa_hdr1-value. " '14.01.2008'.
PERFORM bdc_field USING 'RM06E-LPEIN'
'T'.
READ TABLE wa_hdr1 WITH KEY col = 13 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-EEIND'
wa_hdr1-value. "'14.01.2008'. "Delivery Date
PERFORM bdc_field USING 'RM06E-LPEIN'
'T'.
READ TABLE wa_hdr1 WITH KEY col = 6 srno = w_hdr_counter.
PERFORM bdc_field USING 'EKKO-EKORG'
wa_hdr1-value. "'serv'.
READ TABLE wa_hdr1 WITH KEY col = 7 srno = w_hdr_counter.
PERFORM bdc_field USING 'EKKO-EKGRP'
wa_hdr1-value. "'dce'. Purchase Group
READ TABLE wa_hdr1 WITH KEY col = 8 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-EPSTP'
wa_hdr1-value. "'d'. Item Category
READ TABLE wa_hdr1 WITH KEY col = 9 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-KNTTP'
wa_hdr1-value. "'p'. Account Asign Category
READ TABLE wa_hdr1 WITH KEY col = 10 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-WERKS'
wa_hdr1-value. "'1001'.Plant
READ TABLE wa_hdr1 WITH KEY col = 11 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-LGORT'
wa_hdr1-value. " '1101'. Store Location
READ TABLE wa_hdr1 WITH KEY col = 12 srno = w_hdr_counter.
PERFORM bdc_field USING 'RM06E-MATKL'
wa_hdr1-value. "'c003'. Material Group
PERFORM bdc_dynpro USING 'SAPLMLSP' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
********************end of Header Data*******************
data i type n value 1.
data bfield type string.
LOOP AT wa_line1 WHERE col = 1 AND srno = wa_hdr1-srno.
READ TABLE wa_line2 WITH KEY COL = 14 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING 'RM11P-HEADTEXT'
wa_line2-value. " 'Earthwork text'.
concatenate 'ESLL-SRVPOS(' i ')' into bfield.
PERFORM bdc_field USING 'BDC_CURSOR'
bfield. " 'ESLL-SRVPOS(01)'. "increase counter
PERFORM bdc_field USING 'RM11P-NEW_ROW'
'10'.
READ TABLE wa_line2 WITH KEY COL = 15 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING bfield "'ESLL-SRVPOS(01)'
wa_line2-value. "'5000000000'.
concatenate 'ESLL-MENGE(' i ')' into bfield.
READ TABLE wa_line2 WITH KEY COL = 16 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING bfield "'ESLL-MENGE(01)' "qty
wa_line2-value. "'15'.
concatenate 'ESLL-MEINS(' i ')' into bfield.
READ TABLE wa_line2 WITH KEY COL = 17 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING bfield "'ESLL-MEINS(01)'
wa_line2-value. "'ft3'.
concatenate 'ESLL-TBTWR(' i ')' into bfield.
READ TABLE wa_line2 WITH KEY COL = 18 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING bfield " 'ESLL-TBTWR(01)'
wa_line2-value. "'150'.
PERFORM bdc_field USING 'BDC_OKCODE' "Manually added
'/00'.
PERFORM bdc_dynpro USING 'SAPLMLSK' '0200'.
concatenate 'ESKN-PS_PSP_PNR' i ')' into bfield.
PERFORM bdc_field USING 'BDC_CURSOR'
'ESKN-PS_PSP_PNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'VRTKZ1'
'X'.
concatenate 'ESKN-SAKTO(' i ')' into bfield.
READ TABLE wa_line2 WITH KEY COL = 19 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING 'ESKN-SAKTO(01)' "GL Account No.
wa_line2-value. " '6010010'.
concatenate 'ESKN-PS_PSP_PNR(' i ')' into bfield.
READ TABLE wa_line2 WITH KEY COL = 20 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
PERFORM bdc_field USING 'ESKN-PS_PSP_PNR(01)'
wa_line2-value. " 'HR/KMP-KU'. "WBS Element
PERFORM bdc_dynpro USING 'SAPLMLSK' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ESLL-INTROW'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_field USING 'VRTKZ1'
'X'.
PERFORM bdc_dynpro USING 'SAPLMLSP' '0200'.
i = i + 1.
ENDLOOP.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_field USING 'VRTKZ1'
'X'.
PERFORM bdc_dynpro USING 'SAPLMLSP' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM11P-HEADTEXT'
'Earthwork text'.
*perform bdc_field using 'BDC_CURSOR' "Start Service Line 2
'ESLL-SRVPOS(02)'.
*perform bdc_field using 'RM11P-NEW_ROW'
'10'.
*perform bdc_field using 'ESLL-SRVPOS(02)'
'5000000006'.
*perform bdc_field using 'ESLL-MENGE(02)'
'10'.
*perform bdc_field using 'ESLL-MEINS(02)'
'kmk'.
*perform bdc_field using 'ESLL-TBTWR(02)'
'500'.
*perform bdc_dynpro using 'SAPLMLSK' '0200'.
*perform bdc_field using 'BDC_CURSOR'
'ESLL-INTROW'.
*perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'VRTKZ1'
'X'.
*perform bdc_dynpro using 'SAPLMLSK' '0200'.
*perform bdc_field using 'BDC_CURSOR'
'ESKN-PS_PSP_PNR(01)'.
*perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'VRTKZ1'
'X'.
*perform bdc_field using 'ESKN-SAKTO(01)'
'6010010'.
*perform bdc_field using 'ESKN-PS_PSP_PNR(01)'
'HR/KMP-KU'.
*perform bdc_dynpro using 'SAPLMLSK' '0200'.
*perform bdc_field using 'BDC_CURSOR'
'ESLL-INTROW'.
*perform bdc_field using 'BDC_OKCODE'
'=BACK'.
*perform bdc_field using 'VRTKZ1'
'X'.
*perform bdc_dynpro using 'SAPLMLSP' '0200'.
*perform bdc_field using 'BDC_OKCODE'
'/00'.
*perform bdc_field using 'RM11P-HEADTEXT'
'Earthwork text'.
*perform bdc_field using 'BDC_CURSOR'
'ESLL-KTEXT1(01)'.
*perform bdc_field using 'RM11P-NEW_ROW'
'10'.
*perform bdc_dynpro using 'SAPLMLSP' '0200'.
*perform bdc_field using 'BDC_OKCODE'
'=ESB'.
*perform bdc_field using 'RM11P-HEADTEXT'
'Earthwork text'.
*perform bdc_field using 'BDC_CURSOR'
'ESLL-KTEXT1(01)'.
*perform bdc_field using 'RM11P-NEW_ROW'
'10'.
*perform bdc_dynpro using 'SAPMM06E' '0120'.
*perform bdc_field using 'BDC_CURSOR'
'RM06E-EBELP'.
*perform bdc_field using 'BDC_OKCODE'
'=MALL'.
*perform bdc_field using 'RM06E-EBELP'
'10'.
PERFORM bdc_dynpro USING 'SAPMM06E' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06E-EBELP'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=KOPF'.
PERFORM bdc_field USING 'RM06E-EBELP'
'10'.
PERFORM bdc_dynpro USING 'SAPMM06E' '0101'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EKKO-EKGRP'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TXK'.
*perform bdc_field using 'EKKO-EKGRP'
'DCE'.
*perform bdc_field using 'EKKO-PINCR'
'10'.
*perform bdc_field using 'EKKO-UPINC'
'1'.
*perform bdc_field using 'EKKO-WAERS'
'INR'.
*perform bdc_field using 'EKKO-WKURS'
' 1.00000'.
PERFORM bdc_dynpro USING 'SAPMM06E' '0103'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06E-LTEX1(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'RM06E-LTEX1(01)'
'Old PO no.'.
*perform bdc_transaction using 'ME21'.
w_hdr_counter = w_hdr_counter + 1.
ENDWHILE.
CALL TRANSACTION 'ME21' USING bdcdata MODE 'A'.
PERFORM close_group.
***************forms************
FORM upload_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
*def_filename = ' '
*def_path = ' '
*mask = ' '
mode = '0'
title = 'Choose the Appropriate excel sheet for service PO upload'
IMPORTING
filename = dataset
*EXCEPTIONS
*inv_winsys = 01
*no_batch = 02
*selection_cancel = 03
*selection_error = 04
l_file = dataset.
PERFORM read_exceldata.
ENDFORM. "UPLOAD_FILE
*& Form READ_EXCELDATA
text
FORM read_exceldata.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = l_file
i_begin_col = 1
i_begin_row = 2
i_end_col = 25
i_end_row = 4
TABLES
intern = i_tab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
ENDFORM. "READ_EXCELDATA
create batchinput session *
(not for call transaction using...) *
FORM open_group.
IF session = 'X'.
SKIP.
WRITE: /(20) 'Create group'(i01), group.
SKIP.
open batchinput group
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
group = group
user = user
keep = keep
holddate = holddate.
WRITE: /(30) 'BDC_OPEN_GROUP'(i02),
(12) 'returncode:'(i05),
sy-subrc.
ENDIF.
ENDFORM. "OPEN_GROUP
end batchinput session *
(call transaction using...: error session) *
FORM close_group.
IF session = 'X'.
close batchinput group
CALL FUNCTION 'BDC_CLOSE_GROUP'.
WRITE: /(30) 'BDC_CLOSE_GROUP'(i04),
(12) 'returncode:'(i05),
sy-subrc.
ELSE.
IF e_group_opened = 'X'.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
WRITE: /.
WRITE: /(30) 'Fehlermappe wurde erzeugt'(i06).
e_group_opened = ' '.
ENDIF.
ENDIF.
ENDFORM. "CLOSE_GROUP
*& Form BDC_DYNPRO
text
-->PROGRAM text
-->DYNPRO text
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
****bdc field************
FORM bdc_field USING fnam fval.
IF FVAL <> NODATA.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDIF.
ENDFORM. "BDC_FIELD
FORM process_itab.
APPEND LINES OF i_tab TO wa_hdr .
DELETE wa_hdr WHERE col > 13 .
APPEND LINES OF i_tab TO wa_line .
DELETE wa_line WHERE col <> 1 AND col < 14 .
DATA : w_sr TYPE i.
w_sr = 0.
LOOP AT wa_hdr.
IF wa_hdr-col = 1.
w_sr = wa_hdr-value.
ENDIF.
wa_hdr1-row = wa_hdr-row.
wa_hdr1-col = wa_hdr-col.
wa_hdr1-value = wa_hdr-value.
wa_hdr1-srno = w_sr.
APPEND wa_hdr1.
w_cnt = wa_hdr-row.
ENDLOOP.
w_sr = 0.
LOOP AT wa_line.
IF wa_line-col = 1.
w_sr = wa_line-value.
ENDIF.
wa_line1-row = wa_line-row.
wa_line1-col = wa_line-col.
wa_line1-value = wa_line-value.
wa_line1-srno = w_sr.
APPEND wa_line1.
ENDLOOP.
w_sr = 0.
CLEAR wa_line2.
LOOP AT wa_line1.
wa_line2-row = wa_line1-row.
wa_line2-col = wa_line1-col.
wa_line2-value = wa_line1-value.
wa_line2-srno = wa_line1-srno.
APPEND wa_line2.
ENDLOOP.
ENDFORM. "PROCESS_ITAB
***************forms************
Hi Pradeep
I find there is a problem in your code
When ever you use
PERFORM bdc_field USING 'BDC_OKCODE'
you should follow it up with
PERFORM bdc_dynpro USING <prg name> <screen number>
Please find code below with changes from a part of your code
PERFORM bdc_field USING 'RM06E-MATKL'
wa_hdr1-value. "'c003'. Material Group
* comment this statement is not needed now.
* PERFORM bdc_dynpro USING 'SAPLMLSP' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
READ TABLE wa_line2 WITH KEY COL = 14 SRNO = wa_hdr1-srno ROW = wa_line1-ROW.
* Put the bdc_dynpro for the prg name and screen number (I might be wrong with prg name and
* Screen number
PERFORM bdc_dynpro USING 'SAPLMLSK' '0200'.
Reward points as this will definitely help you
Edited by: Sriram Chandran on Mar 15, 2008 4:39 PM
Similar Messages
-
Hi ,
Could anyone let me know the BDC OK Code for Double click.
I need to select a row by double clicking it in my recording but not able to capture the code for it.
Please do the needful.
Thanks in Advance,
Sowmmya BHi sowmmya,
1. If the row you are talking about is
ALV Grid OO concepts,
then i think there is a problem.
It won't work with BDC as u are trying.
2. Well, for getting the code,
before double clicking go in debug mode /H
and then double click.
3. Now in deubbing mode,
see the value of sy-ucomm.
regards,
amit m. -
Code for 'enter' button in user command.
hi experts,
i have developed a initial screen as selection screen for table control.
data is displayed in second screen(table control).
<b></b>when user enters inputs in selection screen and presses enter on keyboard
it should execute to second screen. code for enter button. <b></b>Hello,
in the PBO process should you have the next code:
for example:
case sy-ucomm.
when 'ENTER'.
CALL SCREEN 0200. " The second window
when 'SAVE'.
when ...
endcase.
You should have all conditions in the case statement, otherwise you have a error.
Regards, -
T code for maintaing condition record in MM pricing
Hiii ..MM GURUS...
Can anyone let me know the transaction code for maintaing condition records for condition types in MM pricing .
Regards
SARFRAZ..MEK1 with appropritate key combination
-
when i try the code
Robot r = new Robot();
r.keyPress(20);
r.keyRelease(20);
it works for all the VK values i found except for 20 for return, i jus get Invalid key code Eception. can any one tell me the integer code for enter?
thanksi tried that but it doesn't seem to work. ...Here is a little example I made.
Does it work as you expect?import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/** Example of using the Robot to type in a text field,
use the enter key, and activate a button via the space bar. */
class ActivateButtonUsingRobot {
static Robot robot;
static void activateKey(int keycode) {
robot.keyPress( keycode );
robot.keyRelease( keycode );
robot.delay( 150 );
public static void main(String[] args)
throws AWTException {
// if headless, exit early
robot = new Robot();
final JFrame f = new JFrame();
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
JTextArea ta = new JTextArea("1st line!",10,20);
f.getContentPane().add(ta, BorderLayout.CENTER);
JButton button = new JButton("Press Me!");
button.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent ae ) {
JOptionPane.showMessageDialog(
f, "Button Activated!" );
f.getContentPane().add(button, BorderLayout.SOUTH);
f.pack();
// put frame in center of screen
f.setLocationRelativeTo(null);
f.setVisible(true);
Dimension screensize =
Toolkit.getDefaultToolkit().getScreenSize();
// move mouse to center of screen, and ..
robot.mouseMove(
screensize.width/2, screensize.height/2 );
// ..activate the frame
robot.mousePress( InputEvent.BUTTON1_MASK );
robot.mouseRelease( InputEvent.BUTTON1_MASK );
robot.delay( 400 );
// try using enter key..
activateKey( KeyEvent.VK_ENTER );
activateKey( KeyEvent.VK_ENTER );
// this text should have a blank line above it..
activateKey( KeyEvent.VK_H );
activateKey( KeyEvent.VK_I );
// move to the button
robot.keyPress( KeyEvent.VK_CONTROL );
robot.keyPress( KeyEvent.VK_TAB );
robot.keyRelease( KeyEvent.VK_TAB );
robot.keyRelease( KeyEvent.VK_CONTROL );
robot.delay( 500 );
// try activating the button..
activateKey( KeyEvent.VK_SPACE );
} -
RFC code for Adding Customer Record
Dear all
Can any body provide RFC code for adding a record
in customer table ( KNA1) ?
regards
- VictorVictor,
I created a remote-enabled function module (z_customer_create) which calls SD_CUSTOMER_MAINTAIN_ALL. The 'z' function module was published as a web service and is working well. We did have a few hurdles but there are many forum posts for FM SD_CUSTOMER_MAINTAIN_ALL that will help should you run into trouble. -
Hi experts,
What is the t-code for delivery note creation.
thanksHi
Kumar
Tcode
>VL01N Creation
>VL02N Change / delete
>VL03N Display
>VL09 Goods issue reverse.
Thx. -
T-Code for Rebate Condition Record
Hi,
Can someone help me with this. I need to create a condition record for Rebate Condition type. Please give me the T-Code to create the Condition Record for Rebate condition type. Cause I am unable to create this thru VK11.
Thanks,
SumitHi
First search in the forum regarding rebate agreements. The same as been answered so many times in the forum.
For this you need to create a rebate agreement for the customers
Goto T code VBO1
enter the rebate agreement type as per your requirement BO01 or BO03
there in the screen enter the rebate recepient now from the menu press "CONDITIONS" tab
there you can enter the condition records
regards -
T-Code for OSS Note Automation.
Hi All, I wanted to know what is the t-code for applying OSS notes instead of SNOTE. I heard about some automation (which it will do pre/post activities) will do without the interference of ABAP person. Please respond ASAP. Regards, Anil.
You must have heard about ANST(Automated Notes Search Tool)
http://scn.sap.com/community/abap/blog/2014/01/07/what-is-anstand-why-arent-you-using-it
http://scn.sap.com/thread/3323958 -
hi genius,
i want generate a report for Debit note .
can anybody provide coding for report to generate debit note ..
for FICO
its urgent...
i am trying very hard to get it..
thanks in advance..
regard,
vijuWhat transaction code did you use to create Debit note?
-
Web Reference inside Script Task causes Binary code for script not found error
I am attempting to access a SOAP web API (sales force) from a SSIS package. To do this I created a script task.
Inside the script task I went to Add Service Reference. Then I click advanced to make it a web reference. Then I point it to the WSDL file and give it a name SFEnterprise. It successfully finds and adds the Web Reference to the script task.
I leave scriptMain.cs alone and I have no warnrings and no errors. Now in the solution explorer I right-click the script task and hit BUILD. I see the message from Output that BUILD succeeded.
I close the VSTA script editor and now I am back on the control flow window. However I have a red X on the script task with the following message. "The Binary code for the script is not found. Please open the script in the designer by clicking EditScript
button and make sure it builds successfully"
But it does build successfully! And I have not even added any custom code except for the web reference using the WSDL file.
I am using SSIS 2012 and Visual Studio 2012. I have been reading about this binary code error message on Google searches and suggestions about delay validation and turning off pre-compile do not apply to SSIS 2012.
Is SSIS not capable of doing this?I was wanting to use the 2.0 coding style of accessing the soap service which is supported by adding the web reference vs. adding a service reference. But using a service reference instead of web reference actually allows the script task to compile. This
is really odd behavior. I wonder why one works and not the other.
Changing my C# code over to service reference coding style to access the SOAP service was still returning an error. When I added a break point I found the error message "Could not find default endpoint element that references contract in the ServiceModel
client configuration section"when calling new SoapClient();
I found this page http://www.sqlis.com/sqlis/post/Where-is-my-appconfig-for-SSIS.aspx and after I copied the System.ServiceModel app settings from the script task app.config to the DTSDebugHost.exe.config it was able to successfully login to the endpoint
during package debug mode.
This means I will have to edit the SQL Server DTS config files on the prod SSIS server to get the package to actually run in the job agent.
So for now I am good I think just plugging away at coding what the script task is actually supposed to do now that is can actually login. -
Language properties re ISO codes for ones not in the drop-down
Here's an easy one- When defining the language in Properties/Advanced and the language you want is not available, do you type in the language NAME (Vietnamese, for example) or ISO code (which is, I believe "vie")?
thanks,
ChrisISO code, according to the W3C Working Group Note PDF16 (http://www.w3.org/TR/WCAG20-TECHS/PDF16.html):
"Acrobat includes 16 preset language selections. If you need to specify a language that is not on the list, such as Russian, you must type the ISO 639 code for the language, not its name."
I'm not sure what version of Acrobat the W3C was using at the time. There are more than 16 languages listed in v. 10, incuding Russian, but I am pretty confident "the ISO 639 code for the language, not its name" still applies. -
Hi
1.I create 2 tabs in Modulepool Programming.
2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
should be displayed in smartform as of Tablecontrol.
where I want to write these code....? and what code i want 2 write...?
can anybody help me>
dileepbandla wrote:
> Hi
>
>
> 1.I create 2 tabs in Modulepool Programming.
> 2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
> 3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
> 4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
> 5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
> 6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
> without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
> should be displayed in smartform as of Tablecontrol.
You need to read the table control data along with Custom table data before you call the smartform and passing data to smartform.
> where I want to write these code....? and what code i want 2 write...?
>
In PAI. What code? - Probably, loop at table control and get the data into another internal table then pass this data into smartform interface.
>
> can anybody help me -
Need help in the code for updating a record ( conditional update)
all set
Edited by: 871431 on Jul 9, 2011 6:30 PM871431 wrote:
Hi
I am looking to update a table which contains approved & unapproved records, for that date & fund combination it should allow only one unapproved record.
what I did is check if the record is U if the incoming value is Unapproved for that fund & date combination raise error, but if I need to update that Unapproved record it raises error....so I need to update that record, and raise error if trying to insert another unapproved record.
Hope I am clear....Not clear for me
Help needed plsPlease realize & understand that everyone here speaks SQL
please post DDL for table
please provide sample/test data & then explain using actual test data what the results should be & why -
Audition for Mac not recording
I have just installed the new Audition for Mac on my iMac which has plenty of memory, is up to date and a good hard drive. I can edit pre-rec material without a problem BUT I cannot record anything from (e.g.) iTunes or YouTube! All I get is a blank edit screen. No error messages - just a request - Do I want to save? I can record OK via the built in mic.
It looks like a conflict somewhere but I've no idea. Input and Output are set to Soundflower 2ch.
Please can anyone help?
Thanks
STUI'm not a Mac user so a question for those who are: if you're using dedicated manufacturer drivers, should Core Audio be involved at all? On a PC based system, once you have the manufacturer drivers installed, they bypass the operating system sound drivers--but I'm not sure if Macs work this way.
Also, the early versions of Mavericks (which I believe your 10.8.4) were known to be flakey in terms of audio use. Many pro users were refusing to do the upgrade. Apple have rushed out a bug fix (10.9.1 from memory but check me) and, on the Focusrite page, I note that they have a new driver for the new Mavericks...I'd try upgrading both the OS and the drivers.
Maybe you are looking for
-
I want to change some security settings in my Apple ID and it asks to answer some security questions that I have no clue why I am answering them wrong. So then I check off send a reset email to change them and the email address comes up with an old e
-
Hi All, Can anyone send me the sample code for attaching a SmartForm in PDF Format. Thanks in advance. Ulhas
-
I just wanted to buy some Owl City! Can I please get some answers? I feel robbed...
-
Hi, my question is: what custom extensions does SCOM uses for the SSRS? When I look on the SSRS forum I'm advised to check who made these extensions and what use they have. Help would be appreciated. Greetings, Pim
-
I'm trying to script some font swapping in PSDs. It mostly works but I discovered a situation where it breaks. If multiples fonts are used on a single text layer, only the first font is listed. I don't know if there is a workaround for this. I've not