BDC Reg
Hi,
How will skip the error record in session method?
How will change the screen resolutions during BDC?
Thanks
Hi
why you wants to skip the record in sessions method?
we run the session method in 'N' mode(background) and process the session in SM35 you will get the LOG for that session, from the log you will correct the records and again run the session in foreground or background, that will solve the issue.
Aftr recording the transaction using SHDB , if you just run the bdc for some 10 to 15 records as test case you will come to know the resoltuion of the screen and whether it is matching the table control or not
so that's why we have to handle the page ups/downs corrrectly in the BDc while using the table control.
Reward points if useful
Regards
Anji
Similar Messages
-
Hello friends,
We have writting one BDC for creating and changing the inspection plan, In this, the plan creation is successfully done.
when we go for change, the system throws the error "task list is invalid create task list".
once we log out the session and login again that uploaded inspection plan is shown with out any error.
we can't address this issue? Kindly help us to fix this....
regards,
sathesHi,
Please clarify that uploaded inspection plan is created one or changed one. To execute the changes for inspection plan the criteria in task list might be inavalid. Hence triggering the error. Please create new task list group in IA05. Thanking you. -
BDC for CO02 , How to check conditions
Hi,
i m trying a BDC of CO02- Change Production Order, i have recorded the transaction by changing the date field in the first screen and then by pressing "Operation Overview" button to change the "WorkCenter".
The Workcenter screen holds the value in the table control.
After recording , when i pass value from TXT file, the BDC Program should identify the table control row which is having AFVGD-KTSCH's Value as 'SEWING', so that the value from the TXT file should replace the another field AFVGD-ARBPL based on the stdtext-'SEWING'.
can any body help me in this.dear prabhu,
see the below code, suggest me where to do the checking,
see the BOLD part of the mail for more info.
pls help in this, i m new to BDC.
regs,
raja
data: str type c length 1,
var type c length 30,
cntr type i.
data: begin of record,
AUFNR(012),
FLG_OVIEW(001),
GLTRP(010),
GSTRP(010),
ARBPL(008),
KTSCH(020),
end of record.
DATA: itab LIKE record OCCURS 1000 WITH HEADER LINE.
PARAMETERS textfile LIKE rlgrap-filename DEFAULT
'c:\prdord.txt'.
End generated data section ***
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = textfile
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
OTHERS = 8.
IF sy-subrc <> 0.
WRITE:/ 'Upload From',textfile,'to itab is not successful'.
EXIT.
ENDIF.
LOOP AT itab.
IF sy-subrc <> 0. EXIT. ENDIF.
perform bdc_dynpro using 'SAPLCOKO1' '0110'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-AUFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'CAUFVD-AUFNR'
itab-AUFNR.
perform bdc_field using 'R62CLORD-FLG_OVIEW'
itab-FLG_OVIEW.
perform bdc_dynpro using 'SAPLCOKO1' '0115'.
perform bdc_field using 'BDC_OKCODE'
'=TERM'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-GSTRP'.
perform bdc_field using 'CAUFVD-GLTRP'
itab-GLTRP.
perform bdc_field using 'CAUFVD-GSTRP'
itab-GSTRP.
perform bdc_dynpro using 'SAPLCOKO1' '0115'.
perform bdc_field using 'BDC_OKCODE'
'=VGUE'.
perform bdc_field using 'BDC_CURSOR'
'CAUFVD-GAMNG'.
perform bdc_field using 'CAUFVD-GSTRP'
itab-GSTRP.
perform bdc_dynpro using 'SAPLCOVG' '0100'.
perform bdc_field using 'BDC_CURSOR'
'AFVGD-KTSCH'.
<b>Here is where i need to check whether the 'AFVGD-KTSCH'containing value 'SEWING' then the itab value should be placed in the below screen-field.</b>
perform bdc_field using 'BDC_CURSOR'
'AFVGD-ARBPL(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'AFVGD-ARBPL(02)'
itab-ARBPL.
perform bdc_dynpro using 'SAPLCOVG' '0100'.
perform bdc_field using 'BDC_OKCODE'
'=FREI'.
perform bdc_field using 'BDC_CURSOR'
'PSFC_DISP-AUFNR'.
perform bdc_dynpro using 'SAPLSPO2' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=OPT1'.
perform bdc_dynpro using 'SAPLCOVG' '0100'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'PSFC_DISP-AUFNR'.
CALL TRANSACTION 'CO02' USING bdcdata MODE 'A'.
if sy-subrc eq 1001.
write:/ ITAB-aufnr,ITAB-arbpl, ITAB-gstrp.
write 'Not Updated'.
else.
write:/ ITAB-aufnr,ITAB-arbpl, ITAB-gstrp.
write 'Updated Successfully'.
endif.
REFRESH bdcdata.
*else.
write 'Improper Text File Format'.
*endif.
endloop. -
Reg: is there any transaction for whcich bdc cannot be done
Dear Friends,
I would like to know if there is any transaction for which bdc cannot be done.
I would like to know the reason, if there is any transaction like that.
I have been asked the same in an session by a senior person.
Reg
Ravi.Hi RaviShankar,
There are so many tcodes for which BDC cannot be done. There many be several reasons for that.
Here is an example for that.
The Tcode FIBPU. If you enter vendor or custome details along with hose bank details. You will get an interactive report data, if you click it will take you to the respective line related information screen. For each line the data will be different along with screens. But for this BDC is not possible.
Thanks
Manju. -
Reg : BDC issue while updating infotype 40 inside BADI class method
Hi Friends,
Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
bdc_field 'RP50G-PERNR' pernr. --> Error Message while calling transaction through BDC
bdc_field 'RP50G-PERNR' '00001234' ---> updating successfully..
1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
Please tell me what i need to do .... ?Hi Dilek Ersoz Adak ,
I also tried with that, but getting same error.. Below is my error im getting while updating BDC through call transaction,
1 PA30 SAPMP50A 1000 E K PBAS_SERVICE 001 HRADMIN EPPRELE 00000121 HRAdministrator CTU RP50G-PERNR
Person is treated already by the HR Administrator -
using we can transfer the data from one system and another system. in ale also we can do same thing. what is the need of using ale
BDC is used in scenarios where a company decides to do away with an existing ERP system and choses to use a SAP R/3 system in its place(Like from Oracle to SAP, or from any legacy system to SAP).
In the process, the company wil store all the legacy data in flat files before discarding the original system.
The flat file data, will have to be uploaded into the R/3 System again. It such cases BDCs/ Batch Iput programs are used.
ALEs are used in a totally different scenario.
If the company is using two loosely coupled sap systems, and the same data is to be maintained in both the systems, then you will use ALE concept.
It is like latching them together and changes made to one system are automatically refelected in the other system as well.
Regards,
Ravi -
Reg: ME21 Purchase Order Creation BDC Codes
Hi All,
Ritenow Im working with ME21 purchase order creation,
i have to create a upload program for this past twodays im geting hectic with this prog, if i create a prog using me21n transaction it is not running, and in ME21 i cant record in SHDB( it throws error messg as fill mandatory flds, but i dont hav data for that flds).
Anyone plz let me know, how to record it and how to use step loop in item overview/details, i would like ot close it ASP.
Thanks in advance.hi
Creating an ABAP program from a BDC recording
Step 1
Execute transaction recorder, transaction SHDB or recording button via transaction SM35.
Step 2
Enter name for recording (can be anything)
Step 3
Enter transaction to be executed
Step 4
The transaction will now be executed, simply perform the actions you want to record. enter some values for the mandatory fields.
Step 5
Once you have finished the recording and selected the save button or exited the transaction you
Will be presented with the following information. This details the screens and fields that have been
Processed during the recording and will be used as a basis to create BDC ABAP program. -
Reg : Error in flat file in BDC
hi friends...
let consider 10 records in my flat file...
suppose 5th record is error means
In BDC Session method, what happen records before and after the error record, its get update or not ? like
In BDC Call Transaction method, what happen records before and after the error record, its get update or not ?
please give me some detail...
Regards
SelvaHi,
In call transaction method you will have an option of Displaying No screens, all screens and Error screens,
If you select No screens all other records except error records will be process and messages will be collected by an internal table of type bdcmsgcoll.
In all screens you need to process each screen manually yourself by selecting the OK code. It is kinda like debugging. So when you encounter the error screen you can change the error data and proceed.
When you select error screens it will stop when the error occurs. So you need to correct the error and continue with the further processing.
Regards,
Pramod -
Reg:how to post the parked documents using BDC
Duplicate message in General deleted. Please do not post the same question in more than one forum.
Hi
I am creating parked Documents using FV50. I am able to check them using FBV0, I am able to select and post the documents using the same transaction. Its working fine. However I want to post the selected parked documents using BDC. I am having problems as the output in FBV0 is in ALV report format. HAving problems selcting the parked documents to be posted. As there any way to post the selected parked documents using BDC.
Please suggest me a solution for this.
Thanks,
Satish
Edited by: Matt on Dec 3, 2008 7:40 PMHi Rob,
Thank you for ur reply, can u send that code how u post the parked documents using BDC for FBV0 transaction. Please send the code.
Thanks,
Satish -
Reg. Update and CATT mode in BDC
Hello friends,
Whn we create new BDC recording in that recording parameters having update mode and CATT mode. so I want to know abt Update mode (Asynchronous, synchronous and local) and CATT mode in BDC.
Thanks.
MarmikHi
CATTMODE
CATT mode (controlling a CATT procedure)
The CATT mode can have the following values:
' ' No CATT procedure active
'N' CATT procedure without single screen control
'A' CATT procedure with single screen control
UPDATE upd
Effect
The specified update mode upd defines the update type. This can have one of the following values:
'A' Asynchronous update
'S' Synchronous update
If the addition UPDATE is not specified, the processing mode is set to 'A' .
synchronous update
In synchronous update, you do not submit an update request using CALL FUNCTION... IN UPDATE TASK. Instead, you use the ABAP statement COMMIT WORK AND WAIT. When the update is finished, control passes back to the program. Synchronous update works in the same way as bundling update requests in a subroutine (PERFORM ON COMMIT). This kind of update is useful when you want to use both asynchronous and synchronous processing without having to program the bundles in two separate ways.
Asynchronous update
A typical SAP system installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. If, in a dialog work process, the function modules stored in interim storage through CALL FUNCTION ... IN UPDATE TASK are released for processing by means of the ABAP statement COMMIT WORK, the dialog work process will not wait for the update process to finish. This kind of update is called asynchronous update. -
Hi Friends,
I am trying to use a transaction IS01 in crm in which i need to upload the long text, but when i am recording it , the particular field (long text) for which i need to give input is not appearing, since it is not a screen batch input field, so is there any bapi available for it to use to transfer the longtext in the transaction IS01 or hw can i record it in BDC while recording and hw can i pass the long text to that particular screen in transaction
Venki..Hi Friends,
I am trying to use a transaction IS01 in crm in which i need to upload the long text, but when i am recording it , the particular field (long text) for which i need to give input is not appearing, since it is not a screen batch input field, so is there any bapi available for it to use to transfer the longtext in the transaction IS01 or hw can i record it in BDC while recording and hw can i pass the long text to that particular screen in transaction
Venki.. -
Reg: CJ40 Cost Planning overall_Data transfer using BDC
Hi,
Is it possible todo transfer using BDC Prog for CJ40 cost planning overall.
here in period im getting table control. if anybody give me sample BDC code for
this CJ40.
thanks in advance.
Hema
Edited by: hema prabakaran on Dec 10, 2008 1:23 PMHi,
Check the following link:
BAPI for Transaction CJ40
Regards,
Prashant. -
Hi All,
Currently i have a requirement for the RFC where i need to create vendor. Currently iam using a BDC recording inside the RFC to create a vendor. But there are 5 account groups for my business where the vendor customizations are done. So the screen flow is getting changed. So how can i handle this scenario . There is no standard BAPI for vendor master creation. Please suggest on thisHello,
First identify what are the fields available and those not avaliable in the screens for each of the 5 account groups you use. After you identify them, in the BDC you can control whether the field should be updated or not based on the checks on account group
Vikranth -
Hi,
In BDC, Call transaction method how to store error in bdcmsgcoll table.
Thank you,Hi,
when you write this automatically the error messages will be populated in table ITAB , you can loop at that table and get the messages
DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'
MESSAGES INTO ITAB.
You can loop at the messages and get the description
loop at itab.
CALL FUNCTION 'TB_MESSAGE_BUILD_TEXT'
EXPORTING
LANGU = SY-LANGU
MSGID = itab-MSGID
MSGNO = itab-MSGNO
MSGV1 = itab-MSGV1
MSGV2 = itab-MSGV2
MSGV3 = itab-MSGV3
MSGV4 = itab-MSGV4
IMPORTING
TEXT = ERR_MSG.
write : ERR_MSG.
endloop.
Message was edited by:
Chandrasekhar Jagarlamudi -
Reg Vendor master upload using BDC Call Transaction Method
Hi All,
Thanks in advance.
I am uploading vendor master data using bdc call transaction method for XK01. In that i am getting an error message that the fields " smtp_addr" ( for email) and "time_zone" (for time zone) doesnot exist on the screen '0110' ( this is the second screen) . the field timezone will be displayed on the screen only when we go for communications button and select the URL field .
Do anybody have the solution for this problem. if possible can you give me the code for that screen.Create a recording via SM35 (menu go to=>recording), this will generate automatically the code for filling your bdcdata-table...
Maybe you are looking for
-
How to index array in a for loop
i'm connecting from variant-to-data function to an index array function inside a for_loop (refer to attachment). the data-type wire got converted from Table(2-D array) to Table(1-D array). How do I keep it from converting to 1-D array? Attachments:
-
Hi, Please let me know how do we generate WSDL from the outbound interface in PI 7.1. Thanks and Regards, Rana
-
Hi SAP Expert, i need to prepared functional spec for Material Ageing Report. i'd like to have some samples for func spec (if any) ? and i would like to know if i what to prepared the functional spec for Material Ageing Report , which table a invo
-
Hello, I am investigating streaming XML into a log file for my system so that I can tag various elements that will allow for efficient reporting on errors, user events, login states etc..... As yet I have found it very unclear as to whether I can do
-
Any reason NOT to update from iOS 4.3.5 to 5.1? I'm scared.
I have an iPhone 4, and I am running iOS 4.3.5. I am reluctant to update because everything is working fine. Any reasons to update? Any reasons NOT to update? I see a couple of APPS that I have that will no longer work unless I update. But that's no