Reading data through BDC
Hi all,
can i read some sale order data through BDC?
i am using BDC to create sale order.i need to change the net price when the condtion type is ZUR1.so i want to read the cond type.if it is ZUR1 , then only i will change the price.
how can i achieve this thing?
Regards
pabitra
while recording you can capture the condition type before net price.
and after the perform stament where internal table say record has condition type value,you can validate
PERFORM bdc_field USING 'xyz'
record-j_condition_type.
if record-condition_type = 'ZUR1'.
net_price = '999999'
PERFORM bdc_field USING 'abc'
record-net_price.
endif.
regards,
pankaj
Edited by: Pankaj Singh on Mar 15, 2008 4:42 PM
Similar Messages
-
why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening?
Any help would be very appreciated.It looks that way..
"When LabVIEW starts it contacts the service
locator to removes all services for itself. This request is triggering
the firewall.This is done in case there were services that were not
unregistered the last time LabVIEW executed- for example from VIs that
didn't clean up after themselves"
This is not yet fixed in LV2009.
Message Edited by Ray.R on 11-04-2009 12:25 PM -
IMac can't read data through 32' USB Active Extension / Repeater Cable
My iMac doesn't seem to be able to read data through my 32' USB Active Extension / Repeater Cable. The cable is brand new, and it works flawlessly to connect my Microsoft Kinect Sensor to my Xbox 360, so I don't think the cable is the problem. Does anyone know how I might solve this issue?
Here is the cable I am using:
32ft 10M USB 2.0 A Male to A Female Active Extension / Repeater Cable (Kinect & PS3 Move Compatible Extension)Welcome to the Apple Discussions.
Have you researched allowed USB cable length for computer connections? I just bought an extension and that cable carried the warning that USB lengths greater than 10 ft were not supported by most computer systems for device connection.
Just talked with a computer support person at work who said he had never heard of anyone being able to use a cable that long. Can you get closer to your computer and use a shorter cable?
As an addendum, read this article, says you cannot use that length cable:
http://docs.info.apple.com/article.html?artnum=31116
Message was edited by: Ralph Landry1 -
Transfer data through bdc using as01 tr. code
hi gurus,
please tell me transfer data through bdc using as01 tr. code.please guide me through coading how to i will proceed.i am using call tr. through recording.
thanks
subhasisSubhasis,
Best way to Convert data to AS01 is to Use BAPI BAPI_FIXEDASSET_CREATE.
Trouble free and easy conversion.
Hope this helps.
Vinodh Balakrishnan -
Read Data through Comport?
Hi Guys,
Is it possible to read data through comportHi,
Can u tell me what is Comport ?
Regards,
Deepu.K -
Hi,
Can we Read data through bias using java.My requirement is i jzt want to read the complete info of the system .including there hardware deatils like Ram and Memory.Please Give me solution to solve this issueWrite full English words using the correct spellings if you want to get help.
-
Down load the data through BDC
Hi ,
I need to know how to down load the data through BDC , pls suggest me how we can do through data download through only BDC u2013 with datas-- Act group, Sales area ,customer pricing procedure ,shipping condition of customer master.
If you need ant further information pls let me know
Regards
Shivashttp://help.sap.com/saphelp_47x200/helpdata/en/67/42fcccf61011d1bcf9080009b4534c/frameset.htm
http://www.sapunleashed.co.uk/bdc/bdc_recording.htm
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm
call Transaction or session method ?
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm -
Light goes off or System crash During Upload data through BDC Call Transaction ..
Hi Experts ,
How do I know how many records had been updated in database while uploading the flat file through BDC call transaction ,the system suddenly crash or light goes off ..............
Thanks and Regards .
Om prakashHi Prakash,
i have already told toy to use bapi to get all the error and success messages, through which you don't need to do all the above stuffs, the first method you have shown is based on algorithm , which might not be correct each time, and the second method is handy.
You can add these code lines in your BDC which will give you all error and success messages
DATA : BEGIN OF options.
INCLUDE STRUCTURE ctu_params.
DATA : END OF options.
DATA: i_messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE,
l_message LIKE bapiret2-message.
DATA: p_mode TYPE c.
DATA BEGIN OF it_error OCCURS 1.
DATA : text(100) TYPE c.
DATA END OF it_error.
DATA BEGIN OF it_success OCCURS 1.
DATA: text(100) TYPE c.
DATA END OF it_success.
START-OF-SELECTION.
PERFORM upload_data.
* Report for success
PERFORM success_text.
* Report for Error
PERFORM error_text.
END-OF-SELECTION.
CALL TRANSACTION 'your transaction code' USING bdcdata
OPTIONS FROM options
MESSAGES INTO i_messtab.
IF SY-SUBRC NE 0.
CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
id = sy-msgid
number = sy-msgno
language = sy-langu
textformat = 'ASC'
message_v1 = sy-msgv1
message_v2 = sy-msgv2
message_v3 = sy-msgv3
message_v4 = sy-msgv4
IMPORTING
message = l_message.
CONCATENATE l_message '-' wa_input-newko wa_input-wrbtr wa_input-budat INTO it_error-text
SEPARATED BY ' '.
APPEND it_error.
ELSE.
CONCATENATE 'DATA UPLOADED SUCCESSFULLY :' wa_input-newko wa_input-wrbtr wa_input-budat
INTO it_success-text SEPARATED BY ' '.
APPEND it_success.
ENDIF.
REFRESH bdcdata.
CLEAR: wa_input,l_message.
ENDLOOP.
***ENDLOOP.
endform.
" UPLOAD_DATA
FORM success_text .
LOOP AT it_success.
AT FIRST.
WRITE :/10 'Following records successfully uploaded'.
ULINE.
ENDAT.
WRITE :/10 it_success-text.
ENDLOOP.
ENDFORM.
FORM error_text .
LOOP AT it_error.
AT FIRST.
WRITE :/10 'Following records are not uploaded'.
ULINE.
ENDAT.
WRITE :/10 it_error-text.
ENDLOOP.
ENDFORM. -
Error while reading data through External Table!!!
CREATE TABLE "COGNOS"."EXT_COGNOS_TBS9_TEST"
( "ITEM_DESC" VARCHAR2(200 BYTE),
"EXT_CODE" VARCHAR2(20 BYTE),
"RC_DATE" DATE,
"RES_KD_AMNT" NUMBER(18,3),
"RES_FC_AMNT" NUMBER(18,3),
"NRES_KD_AMNT" NUMBER(18,3),
"NRES_FC_AMNT" NUMBER(18,3),
"TOTAL" NUMBER(18,3),
"OF_WHICH_OVR1" NUMBER(18,3)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "EXTDATADIR"
ACCESS PARAMETERS
( RECORDS
DELIMITED BY NEWLINE LOAD WHEN *({color:#ff0000}EXT_CODE LIKE 'TBS9%'{color})* FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL )
LOCATION
( 'TBS9_TEST.CSV'
External table creation went through successfully but am getting error while reading data. Am quite sure error is because of above line in red color. Could you please help me in transforming logic.
Thanks in Advance,
APLet's start with the basics...
1) You state that you are getting an error. What error do you get? Is this an Oracle error (i.e. ORA-xxxxx)? If so, please include the error number and the error message as well as the triggering statement. Or is the problem that rows are getting written to the reject file and errors are being written to the log file? If so, what record(s) are being rejected and what are the reasons given in the log file? Or perhaps the problem is something else?
2) You state that you are quite sure that the problem relates to the hilighted code. What makes you quite sure of this?
Justin -
Rggarding upload data through BDC
Hi guru,
If anybody have BDC for uploading data for the transaction for J1ID (Customer Exicse Details) .
then plz send me.
Thankshi,
you could get BDC program automatically generated by SAP . Go to t-code SHDB do recording with your t-code after recording a session will be created .After selecting the session if you click the program button a Program will be automatically generated by SAP.Choose Radio button transfer from recording.
with regards,
M.Sreeram. -
How we can upload the data through BDC for transaction J1ID
Hi guru
How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
Fields. 11 Fields.plz provide some code logic.
KUNNR J_1IEXCD J_1IEXRN J_1IEXRG J_1IEXDI J_1IEXCO J_1ICSTNO J_1ILSTNO J_1IPANNO J_1IEXCICU J_1ISERNHi,
I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
SEARCH SCN for Table Control in BDC
Regards
Karthik D -
In order to search notification, I recorded a script with SHBD . This script go to IW28 and do a simple search. It works but I want to have the result to do another treatment.
Is it possible to have the data showed in a list?
This is my script :
FUNCTION z_pm_web_liste_avis.
*"*"Interface locale :
*" EXPORTING
*" REFERENCE(AVIS) TYPE ZPM_AVIS
PERFORM bdc_dynpro USING 'RIQMEL20' '1000'.
PERFORM bdc_field USING 'BDC_CURSOR'
'SELSCHEM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ONLI'.
PERFORM bdc_field USING 'DY_OFN'
'X'.
PERFORM bdc_field USING 'DY_IAR'
'X'.
PERFORM bdc_field USING 'DATUV'
'14.03.2014'.
PERFORM bdc_field USING 'DATUB'
'12.06.2014'.
PERFORM bdc_field USING 'MZEIT-LOW'
'00:00:00'.
PERFORM bdc_field USING 'MZEIT-HIGH'
'00:00:00'.
PERFORM bdc_field USING 'AUZTV-LOW'
'00:00:00'.
PERFORM bdc_field USING 'AUZTV-HIGH'
'00:00:00'.
PERFORM bdc_field USING 'AUZTB-LOW'
'00:00:00'.
PERFORM bdc_field USING 'AUZTB-HIGH'
'00:00:00'.
PERFORM bdc_field USING 'VARIANT'
'/AAI_PM_REL'.
PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'04/03'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'.
PERFORM bdc_dynpro USING 'RIQMEL20' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EE'.
PERFORM bdc_field USING 'BDC_CURSOR'
'SELSCHEM'.
PERFORM bdc_transaction USING 'IW28'.
COMMIT WORK.
ENDFUNCTION.
*& Form bdc_dynpro
* text
* -->PROGRAM text
* -->DYNPRO text
FORM bdc_dynpro USING program dynpro.
DATA gs_bdcdata TYPE bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-program = program.
gs_bdcdata-dynpro = dynpro.
gs_bdcdata-dynbegin = 'X'.
APPEND gs_bdcdata TO gt_bdcdata.
ENDFORM. "BDC_DYNPRO
*& Form bdc_field
* text
* -->FNAM text
* -->FVAL text
FORM bdc_field USING fnam fval.
DATA gs_bdcdata TYPE bdcdata.
CLEAR gs_bdcdata.
gs_bdcdata-fnam = fnam.
gs_bdcdata-fval = fval.
APPEND gs_bdcdata TO gt_bdcdata.
ENDFORM. "BDC_FIELD
*& Form bdc_transaction
* text
* -->TCODE text
FORM bdc_transaction USING tcode.
DATA: messtab TYPE TABLE OF bdcmsgcoll WITH HEADER LINE.
DATA: l_mstring(480).
DATA: l_subrc LIKE sy-subrc.
REFRESH messtab.
CALL TRANSACTION tcode USING gt_bdcdata
MODE 'A'
UPDATE 'S'
MESSAGES INTO messtab.
l_subrc = sy-subrc.
WRITE: / 'CALL_TRANSACTION',
tcode,
'returncode:'(i05),
l_subrc,
'RECORD:',
sy-index.
LOOP AT messtab.
MESSAGE ID messtab-msgid
TYPE messtab-msgtyp
NUMBER messtab-msgnr
INTO l_mstring
WITH messtab-msgv1
messtab-msgv2
messtab-msgv3
messtab-msgv4.
WRITE: / messtab-msgtyp, l_mstring(250).
ENDLOOP.
SKIP.
REFRESH gt_bdcdata.
ENDFORM. "BDC_TRANSACTIONIt turns out, that I needed to serialize the XML on the server and read it as Blob. Like this:
1 final Statement statement = connection.createStatement() ;
2 final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;
3 ResultSet resultSet = statement.executeQuery( sql ) ;
4 String result = null ;
5 while(resultSet.next()) {
6 Blob blob = resultSet.getBlob( 1 );
7 InputStream inputStream = blob.getBinaryStream();
8 result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();
9 inputStream.close();
10 blob.free();
11 }
12 resultSet.close();
13 statement.close();
14
15 System.out.println( result );
16 return result ;
17
Then it works. Still, can't get it work with XMLType in resultset.On the client unwrapping XML blows up when trying to switch to different XML schema. JDBC/XDB problem? -
To Tackle duplicate data while uploading through BDC
Dear All,
I am uploading data through BDC in HR for Infotype 2011. While uploading the data i want to check for data which is already available for same date & time and display error accordingly.
Kindly help me in this. Also is it possible to handle this by setting infotype charactertics to accept only single values or we can handle it through our code.
Thanks in advance.
Regards,
SwapnilHi,
The only characteristic that handle the availibility of record at one time is the time constraint indicator and won't be very usefull to you for a time event infotype. In your case you will have to check if the entry you are creating already exist in TEVEN table.
Kr,
m. -
How to add rows in table control for data recording BDC?
hello,
pl tell me the way to upload data through BDC in table control of screen .
how to add fields inrecording of table control?
Please give some code in this regard.
I am generous in giving points..pl help!Hi,
While doing code under recording first you need to do the recording with sample data under a particular transaction like T-code XK01 (Vendor creation).
Take an example of create vendor using T-code XK01:
Go to t-code 'SHDB' under make recording for XK01 with sample data and once if you complete the recording means after vendor creation check the source code bye by pressing the button 'Program', it shows the total coding for recording of what you entered the test data.
Then you will create one program and copy that source code of recording into your program, and now you have to remove the values at perform statement and give the internal table field name.
Like that you can develop your own code along with your validations.
my best suggestion is dont see the example code of recording method because any one for standard t-code should get the code from recording with sample data, so first tryout with your own recording method and you can understand the code step by step.
With these I hope you will get some idea of recoding method.
Let me know for further doubts.
Regards,
Vijay. -
Upload data into bdc throu word files for this which fm use
upload data through bdc from word file which function module use.
insert new field into standard table. can we create it using append structure.
Maybe you are looking for
-
How do i stop quicktime from loading pdf files
Why is Quick time loading pdf file and how do I stop it .
-
I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. Is anyone able to give me a hint how to handle it? Thank you in advance arl
-
OInvGenEntry adding serial/batch error
hi i have tried to add a serial and batch item using the oInvGenEntry object with the codes below. somehow i keep getting the "item has no serial number management" error. the item has been set to be managed by serial and batch respectively. the str
-
We have set up our meeting rooms with opening hours from 0700 to 2300. But if I go into room finder, I can only see until 1700 for all meeting rooms in the list Some one got any tips for this ??
-
Adobe AIR - stage orientation / rotation
Hello, I'm developing an desktop AIR aplication. At some point the user can rotate de aplication (0º or 180º). I looked at the API and its possbile to change the application orientation on AIR for mobile as described on this article: http://help.adob