BDC - recording - getting different screens
HI all,
I am working with BDC for creating Master Recipes (transaction code - c201). When I am creating the Master Recipes manually the screen numbers which I am getting are different from the screens which I get while recording the transaction c201.
My question is in my BDC which screen numbers should I use? The ones from recording or the ones from the manual creation through c201.
Also is there a way to get the original screens of transaction c201 while Iam doing recording. Please help.
Waiting for replies.... Thanks
Hi,
If the screen sequences depend on the data entered then, record all the situations and then call the screens based on the data.
or
If still your getting different which is pretty strange, then test it if its working fine it should not be a problem.
Regards,
AS
Similar Messages
-
Different screens shown when using BDC for Transaction XK03
Hello Forum,
Please provide a soultion for the below problem .
When i open transaction XK03 (with 4 check boxes of general Data ticked )it is ok.
When i call transaction XK03 from my program (by sending the check box parameters ticked)- the scren shown is different .
(I used BDC to set the checkboxes)
Sample code for testing that i write to call XK03 is -
DATA: ls_bdc_comp TYPE bdcdata, "workarea for BDC recording of XK03
lt_bdc_comp TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
CLEAR: ls_bdc_comp .
REFRESH lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-program = 'SAPMF02K'.
ls_bdc_comp-dynpro = '0101'.
ls_bdc_comp-dynbegin = wc_x.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'BDC_OKCODE'.
ls_bdc_comp-fval = '/00'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-LIFNR'.
ls_bdc_comp-fval = 'S000819001'. "Vendor
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0110'. "Address
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CALL TRANSACTION 'XK03'
USING lt_bdc_comp.
MODE 'E'.
Regards
Lovleen
Moderator Message: Please use proper subject lines while posting your questions.
Edited by: Suhas Saha on Jul 22, 2011 3:48 PMHi,
You can try with below code,
DATA: ls_bdc_comp TYPE bdcdata, "workarea for BDC recording of XK03
lt_bdc_comp TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
CLEAR: ls_bdc_comp .
REFRESH lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-program = 'SAPMF02K'.
ls_bdc_comp-dynpro = '0101'.
ls_bdc_comp-dynbegin = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'BDC_OKCODE'.
ls_bdc_comp-fval = '/00'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-LIFNR'.
ls_bdc_comp-fval = 'S000819001'. "Vendor
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0110'. "Address
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CLEAR ls_bdc_comp.
ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
ls_bdc_comp-fnam = 'USE_ZAV'. "contact person
ls_bdc_comp-fval = 'X'.
APPEND ls_bdc_comp TO lt_bdc_comp.
CALL TRANSACTION 'XK03'
USING lt_bdc_comp
MODE 'E'.
It will also take you to some other screen but up to some extend you will able to see same kind of data. -
In bdc if date format of records is different do we need to hard code
in bdc if date format of records is different do we need to hard code or bdc will support automatically,please provide the answer.
Make sure to format the date before passing to BDC.
data: datum(10) type c.
call function 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
DATE_INTERNAL = SY-DATUM
IMPORTING
DATE_EXTERNAL = datum.
Regards,
Rich Heilman -
In KA02 screen how can I get different functional area like (Production, Sales, Adminstration etc)
Hi,
Please check below configuration for defining functional areas for cost elements
SPRO> FI > FI Global settings> company code> cost of sales accounting>Functional area > enter functional area
Regards,
Jyoti -
Why some screens are hiddens in BDC record mode?
I'm trying to create a BDC record in VA01 transaction but in this mode some screens are hidden just like screen "Material substitution(selecting a material)" Dynpro 800 Program "SAPMV45A"
Is it possible to show this screen in BDC recorder? how can i do it?
RegardsHi,
i´m no expert in this but for a recording of material substitution you could try with transactions VB12 or VB13
Best regards. -
Can i get multiple records if selection screen is 900 using PROVIDE
Hi All,
Iam using following statement for fetching MULTIPLE records from infotype 0008. In Attributes if i declare LDB as pnp and selection screen as 900, then iam not getting any records.
Instead of th selection screen 900 is empty. then records will getting properly.
How can i get multiple records if selection screen is 900?
PROVIDE * FROM p0008
between pn-begda and pn-endda.Hi Ranjith
You can use
PYBEGDA and PYENDDA instead of PN-BEGDA AND PN-ENDDA.
Regards
Muneer.VK -
Pop ups on mac?
I got a mac a few months ago and a few weeks ago I began to get mackeeper ads popping up in a different screen. Now it s getting worse and happening almost every time I click on something, and there s even more variety of what websites pop up. Now I have pop ups on the actual website I m on and they pop up every time I click something. It s really obnoxious and I hate it. How can I get rid of this....? It s really distractingClick here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
(124753) -
I've tried 2 different screen capture devices, and in both cases, audio stops recording after 20 or 30 seconds, but video is fine. The audio disappears with both programs. Does anyone know what is happening with my audio capture?
Update, I took the webcam home over the weekend and tried on my home network and the outcome was the same video fine - audio delayed, is this a Skype for desktop issue?
-
Hi Everyone,
A Very Very Happy, Fun-filled, Awesome New Year to You All.
Now coming to the discussion of my problem in Oracle Forms 6i:
I have created a form in which the data is entered & saved in the database.
CREATE TABLE MATURED_FD_DTL
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
CUST_CODE NUMBER(9),
FD_AMT NUMBER(15),
FD_INT_BAL NUMBER(15),
TDS NUMBER(15),
CHQ_NO NUMBER(10),
CREATED_DATE DATE,
CREATED_BY VARCHAR2(15 BYTE),
PREV_YR_TDS NUMBER(15),
ADD_FD_AMT NUMBER(15),
DESCRIPTION VARCHAR2(100 BYTE),
P_SAP_CODE NUMBER(10),
P_TYPE VARCHAR2(1 BYTE)
The form looks like below:
ENTER_QUERY EXECUTE_QUERY SAVE CLEAR EXIT
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
R
W
P
List Item
There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
The user will enter the data & save it.
So all this will get updated in the table MATURED_FD_DTL .
I am updating one column in another table named as KEC_FDACCT_MSTR.
and
I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
CREATE TABLE KEC_FDACCT_DTL
FD_SR_NO NUMBER(8) NOT NULL,
FD_DTL_SL_NO NUMBER(5),
ACCT_FD_NO VARCHAR2(17 BYTE) NOT NULL,
FD_AMT NUMBER(15,2),
INT_RATE NUMBER(15,2),
SAP_GLCODE NUMBER(10),
CATOGY_NAME VARCHAR2(30 BYTE),
PROCESS_YR_MON NUMBER(6),
INT_AMT NUMBER(16,2),
QUTERLY_FD_AMT NUMBER(16,2),
ITAX NUMBER(9,2),
MATURITY_DT DATE,
FDR_STAUS VARCHAR2(2 BYTE),
PAY_ACC_CODE VARCHAR2(85 BYTE),
BANK_CODE VARCHAR2(150 BYTE),
NET_AMOUNT_PAYABLE NUMBER,
QUATERLY_PAY_DT DATE,
CHEQUE_ON VARCHAR2(150 BYTE),
CHEQUE_NUMBER VARCHAR2(10 BYTE),
CHEQUE_DATE DATE,
MICR_NUMBER VARCHAR2(10 BYTE),
PAY_TYPE VARCHAR2(3 BYTE),
ADD_INT_AMT NUMBER(16,2),
ADD_QUTERLY_FD_AMT NUMBER(16,2),
ADD_ITAX NUMBER(16,2),
ECS_ADD_INT_AMT NUMBER(16),
ECS_ADD_QUTERLY_FD_AMT NUMBER(16),
ECS_ADD_ITAX NUMBER(16)
So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
BEGIN
Commit_form;
UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
IF :P_TYPE='P' THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
COMMIT;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
END;
If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
The problem what is happening is,
If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
Even the records with 'P' is not getting updated.
I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
So, can you please help me with this.
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle Forms Builder 6i.Its not working properly.
At Form_level_Trigger: POST_INSERT, I have put in the following code.
IF :P_TYPE='P'THEN
INSERT INTO KEC_FDACCT_DTL
SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
END IF;
MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
MESSAGE(' ',no_acknowledge);
It worked properly when i executed first time, but second time , in database duplicate values were stored.
Example: First I entered the following in the form & saved it.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
250398
52
50000
6000
0
600
0
45415
P
5678
int1
320107
56
100000
22478
3456
2247
0
45215
R
456
320108
87
50000
6500
0
650
0
21545
W
0
In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
ACCT_FD_NO
P_TYPE
250398
P
But second time, when i entered the following in the form & saved.
ACCT_FD_NO
CUST_CODE
FD_AMT
FD_INT_BAL
PREV_YR_TDS
TDS
ADD_FD_AMT
P_SAP_CODE
P_TYPE
CHQ_NO
DESCRIPTION
260189
82
50000
6000
0
600
0
45415
P
5678
interest567
120011
46
200000
44478
0
4447
0
45215
R
456
30191
86
50000
6500
0
650
0
21545
W
56
In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
ACCT_FD_NO
P_TYPE
250398
P
250398
P
260189
P
320107
R
320108
W
There was duplicate of 250398 which i dint enter in the form second time,
All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
How do i do this??? -
Vendor Master (XK02) - Missing Screen fields in BDC recording.
Hi All,
I have extended IDOC type cremas03 to add some extended fields (sort1 and sort2) which are not in the standard IDOC. In the exit ZXVSVU04, I plan on doing a call transaction to XK02 to update the required fields. In my BDC recording, the two fields are not available, but are available when not in BDC both in change and create. I have also tried recording FK02 and this behaves the same way. Is there a way of having these fields added so they are available in the BDC session?
Best regards,
James.Hi
Really strange ...
What all comes in the last section of the Web page, when you are using BBPMAINTINT transaction in SRM4.0?
Look carefully, below the email option, there is an option for FTP as well.
OR
Is email option is coming as a drop-down list ?
Hope this will help.
Please reward suitable points.
Regards
- Atul -
Bdc recording of screen having table control
hi all,
how to trap scroll in bdc recording of table control.
regards deepakHi..,
<b>I found this program in one of the BDC links !! Hope this helps u !!</b>
Following is a sample code of handling table control in BDC.
REPORT Y730_BDC5 .
*HANDLING TABLE CONTROL IN BDC
DATA : BEGIN OF IT_DUMMY OCCURS 0,
DUMMY(100) TYPE C,
END OF IT_DUMMY.
DATA : BEGIN OF IT_XK01 OCCURS 0,
LIFNR(10) TYPE C,
BUKRS(4) TYPE C,
EKORG(4) TYPE C,
KTOKK(4) TYPE C,
NAME1(30) TYPE C,
SORTL(10) TYPE C,
LAND1(3) TYPE C,
SPRAS(2) TYPE C,
AKONT(6) TYPE C,
FDGRV(2) TYPE C,
WAERS(3) TYPE C,
END OF IT_XK01,
BEGIN OF IT_BANK OCCURS 0,
BANKS(3) TYPE C,
BANKL(10) TYPE C,
BANKN(10) TYPE C,
KOINH(30) TYPE C,
LIFNR(10) TYPE C,
END OF IT_BANK.
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = 'C:\VENDOR.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = IT_DUMMY.
LOOP AT IT_DUMMY.
IF IT_DUMMY-DUMMY+0(2) = '11'.
IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
APPEND IT_XK01.
ELSE.
IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
APPEND IT_BANK.
ENDIF.
ENDLOOP.
LOOP AT IT_XK01.
REFRESH IT_BDCDATA.
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-REF_LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
IT_XK01-LIFNR.
perform bdc_field using 'RF02K-BUKRS'
IT_XK01-BUKRS.
perform bdc_field using 'RF02K-EKORG'
IT_XK01-EKORG.
perform bdc_field using 'RF02K-KTOKK'
IT_XK01-KTOKK.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-TELX1'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
IT_XK01-NAME1.
perform bdc_field using 'LFA1-SORTL'
IT_XK01-SORTL.
perform bdc_field using 'LFA1-LAND1'
IT_XK01-LAND1.
perform bdc_field using 'LFA1-SPRAS'
IT_XK01-SPRAS.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
DATA : FNAM(20) TYPE C,
IDX TYPE C.
MOVE 1 TO IDX.
LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKS.
CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKL.
CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-BANKN.
CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
perform bdc_field using FNAM
IT_BANK-KOINH.
IDX = IDX + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-FDGRV'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFB1-AKONT'
IT_XK01-AKONT.
perform bdc_field using 'LFB1-FDGRV'
IT_XK01-FDGRV.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
IT_XK01-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'WYT3-PARVW(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_BDCMSGCOLL.
ENDLOOP.
FORM BDC_DYNPRO USING PROG SCR.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROG.
IT_BDCDATA-DYNPRO = SCR.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.
regards,
sai ramesh -
Bdc performance in "No screen" mode, on slow network, on remote server.
Hi,
We have created a bdc program in ABAP.
say, our servers are installed in US. and our users are trying to execute bdc by uploading a data file from UK.
consider that the connectivity(network) between our US office and UK office is not so goood.
i understand that the upload of the data file will take time. but after the upload, for bdc execution, how the bdc performance gets impacted by the network performance.
if we execute the bdc in All screen mode, i am convinced that the bdc will definetly will take a long time to execute, becasue UK user needs to press "Enter" several no. of times, and so many pings will happen to the server.
if we execute the bdc in No Screen mode, does it meen it is completely background process.
i mean in this case also, is the screen info passed to and from between the server(US) and the sapgui(UK).
or
once the data upload is over, in No Screen mode, the entire activity is done in server, and the control comes back to sapgui at the end.
We have put some logs, and we found that most of the time is taken by the CALL TRANSACTION statement
CALL TRANSACTION 'PP01' USING it_bdcdata
is there any other points to improve the bdc execution on a remote server.
thanks in advance,
Madhu_1980Hi Sandra ,
Thanks for your suggestion throiugh the link.
Had checked the trouble shooting for BDC : but the scenario in which i experienc eth eproblem is little different.
Well the Interface to create vendors was working perfectly in ALL Screen as well as NO-SCREEN mode.
But a small requirement seem to change its execution.
The Interface had a commented code snippet : retrieve email address from ADR6 table. Now according to the new requirement this code snippet needs to be utilized. So i uncommented that and duly passed th etable entries into the concerned screen (the code for that screen aldready exsits in the recording but not utilized since the retrieval was commented)
Collects the email address for any vendor from ADr6 table
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
now for linking the above created vendor, FK02 BDC is maintained. In this BDC the payment transaction screen is used to link payee vendors (above created vendor) at company code level for any principal vendors (selected from lfa1 and lfb1 table). So only two screens for linking .
this entire code was working perfect in both A mode and N mode but after including the ADR6 code snippet i dont find teh similar execution in N mode.
Could you please guide me where could i ahve made some mistake.
thanks
Kylie
Edited by: kylietisha on Jun 6, 2010 5:27 PM
Edited by: kylietisha on Jun 6, 2010 5:42 PM
Edited by: Rob Burbank on Jun 6, 2010 4:33 PM -
FV50-Park a G/L Account Document BDC Warning message in screen 1001
I need some help with a BDC program. I am working on a BDC program to process transaction FV50. I went to SHDB and created a recording macro. When I test the recording with u201Csimpleu201D information the recording works correctly and the document is parked. But, when I try to park a document with todays date for the Document Date and I use a date from a previous period I get a warning message which requires an extra screen to be displayed and u201Centeru201D has to pressed. My recording does not work when I get a warning message. I went back and re-recorded transaction FV50 and cause the u201Cwarningu201D message to be displayed so that I can add the extra screen to my BDC recording. I do not see the u201Cextrau201D screen in the new BDC recording. Anyone know why? How can I make this BDC program handle this extra warning message?
You will have to add some logic to your program to check the date. If it is from the previous period, process the warning screen; otherwise, do not.
You may run into other problems as well. FV50 looks like an EnjoySAP transaction and not well suited to batch input.
Rob -
I5 17''MBP gets blue screen during install windows 7 32 bit
Hello all:
I heard that quite many people get classic windows' "blue screen" during using windows , whatever Windows XP, Vista or 7. But now i face the "blue screen" during install Windows 7, which means I even can not complete installation.
I bought my Macbook Pro i5 17'' one month ago, and I'm trying to install Windows 7 but I face the problem during the installation. After finishing first 4 steps the computer would restart and start to "finish installation", but at this time it gets "blue screen" and shows "error: 0x0000009c" and stuck there. I have to shut down the turn off button and interrupt the installation.
I don't know if there's any one else face this unlucky situation. I searched on the net and it says the problem could be from memory, graphic card (too new), or even overlocking the cpu,whatever it must be the problem of hardware. I thought it might be the problem of compatible.
If anyone knows how to deal with this problem??!! I do need to use some software under Windows system!It is good to see that it is indeed a USB2.
The support software on the USB is used in the Pre-boot environment setup and provides drivers for Apple specific hardware, GPU, BT, Mouse, etc. You can verify that by looking at the USB contents. The DVD contains generic drivers when hardware is not recognized as defaults to use. Apple does enough 'secret sauce' to make them different. The following does not explicitly state the USB2 need when using the DVD Installer and mentions W8 (not W7).
From Boot Camp: Creating an ISO image from a Windows installation DVD - Apple Support
Insert a blank USB 2 flash drive that is a least 16GB in size into a USB port on the computer. Boot Camp Assistant uses this drive to store the Windows 8 install media and support drivers during installation of Windows.
Note: This flash drive needs to be formatted for the FAT32 file system and must use the Master Boot Record partitioning scheme. Use Disk Utility to check the format of the flash drive before proceeding, and partition or erase the flash drive if necessary.
I suspect the GPU is not getting the correct driver and the Installer fails. The Generic VGA should work. From the OS X side, can you see files in your BC volume? If yes, can you look for logs in the BC volume at the following locations.
./Windows/Inf/setupapi.dev.log
./Windows/Inf/setupapi.offline.log
./Windows/Inf/setupapi.setup.log
./Windows/Logs/SetupCleanupTask/setupact.log
./Windows/Logs/SetupCleanupTask/setuperr.log
./Windows/Panther/FastCleanup/setupact.log
./Windows/Panther/FastCleanup/setuperr.log
./Windows/Panther/setupact.log
./Windows/Panther/setuperr.log
./Windows/Panther/UnattendGC/setupact.log
./Windows/Panther/UnattendGC/setuperr.log
./Windows/setupact.log
./Windows/setuperr.log
./Windows/System32/Sysprep/Panther/IE/setupact.log
./Windows/System32/Sysprep/Panther/IE/setuperr.log -
Bdc recording for trancastion ME01
Hi,
Can u help me in BDC recording for transaction 'ME01' .
I have no idea for transaction 'ME01' & here i like to know how to handle table ctr during bdc recording?
give sample code if possible.
ThanksSee the sample attached code for ME51 using table control.
similarly record the same for ME01 and copy the TC logic from this.
REPORT zmm_pr_upload_mat
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Standard Include for Selection Screen
INCLUDE bdcrecx1.
Internal Table for Upload Data
DATA: BEGIN OF i_pr OCCURS 0,
Header Screen
sno(3), " SNo
bsart(004), " PR Type
epstp(001), " Item Category
knttp(001), " Account Assignment
eeind(010), " Delivery Date
lpein(001), " Category of Del Date
werks(004), " Plant
lgort(004), " Storage Location
ekgrp(003), " Purchasing Group
matkl(009), " Material Group
bednr(010), " Tracking No
afnam(012), " Requisitioner
Item Details
matnr(018), " Material No
menge(017), " Quantity
badat(010),
frgdt(010),
preis(014), " Valuation Price
waers(005), " Currency
peinh(005),
wepos(001),
repos(001),
sakto(010), " GL Account
kostl(010), " Cost Center
bnfpo(005),
END OF i_pr.
Internal Table for header Data
DATA: BEGIN OF it_header OCCURS 0,
sno(3), " SNo
bsart(004), " PR Type
epstp(001), " Item Category
knttp(001), " Account Assignment
eeind(010), " Delivery Date
werks(004), " Plant
lgort(004), " Storage Location
ekgrp(003), " Purchasing Group
matkl(009), " Material Group
bednr(010), " Tracking No
afnam(012), " Requisitioner
END OF it_header.
Internal Table for Item Data
DATA: BEGIN OF it_item OCCURS 0,
sno(3), " SNo
matnr(018), " Material No
menge(017), " Quantity
preis(014), " Valuation Price
sakto(010), " GL Account
kostl(010), " Cost Center
END OF it_item.
Data Variables & Constants
CONSTANTS : c_x VALUE 'X'. " Flag
DATA : v_l(2), " Counter
v_rowno(5), " Row No
v_2(2), " Counter
v_rows LIKE sy-srows, " Rows in TC
v_field(45). " String
Parameters
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start of Selection
START-OF-SELECTION.
Open the BDC Session
PERFORM open_group.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_pr
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT i_pr BY sno.
LOOP AT i_pr.
MOVE-CORRESPONDING i_pr TO it_item.
APPEND it_item.
CLEAR it_item.
AT END OF sno.
READ TABLE i_pr INDEX sy-tabix.
MOVE-CORRESPONDING i_pr TO it_header.
APPEND it_header.
CLEAR it_header.
ENDAT.
ENDLOOP.
SORT it_header BY sno.
SORT it_item BY sno.
v_rows = sy-srows - 6.
Upload the Data from Internal Table
LOOP AT it_header.
Header Data
PERFORM bdc_dynpro USING 'SAPMM06B' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBAN-BEDNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'EBAN-BSART'
it_header-bsart.
PERFORM bdc_field USING 'RM06B-EPSTP'
it_header-epstp.
PERFORM bdc_field USING 'EBAN-KNTTP'
it_header-knttp.
PERFORM bdc_field USING 'RM06B-EEIND'
it_header-eeind.
PERFORM bdc_field USING 'RM06B-LPEIN'
it_header-lpein.
PERFORM bdc_field USING 'EBAN-WERKS'
it_header-werks.
PERFORM bdc_field USING 'EBAN-LGORT'
it_header-lgort.
PERFORM bdc_field USING 'EBAN-EKGRP'
it_header-ekgrp.
PERFORM bdc_field USING 'EBAN-MATKL'
it_header-matkl.
PERFORM bdc_field USING 'EBAN-BEDNR'
it_header-bednr.
PERFORM bdc_field USING 'EBAN-AFNAM'
it_header-afnam.
Item Details
v_l = 0.
To add no. of rows
v_2 = 0 .
As the screen is showing 13 rows defaulted to 130
v_rowno = 130 .
LOOP AT it_item WHERE sno = it_header-sno.
v_l = v_l + 1.
IF v_l = 14 .
IF v_2 = 12 .
v_2 = 12 .
v_l = 2 .
From second time onwards it is displaying 12 rows only
v_rowno = v_rowno + 120 .
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'RM06B-BNFPO'
v_rowno.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
ELSE.
V_2 initialized to 12 for second screen purpose
v_2 = 12 .
v_l = 2 .
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'RM06B-BNFPO'
v_rowno .
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
ENDIF.
ENDIF.
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
CLEAR v_field.
CONCATENATE 'EBAN-MATNR(' v_l ')' INTO v_field.
PERFORM bdc_field USING v_field it_item-matnr.
CLEAR v_field.
CONCATENATE 'EBAN-MENGE(' v_l ')' INTO v_field.
PERFORM bdc_field USING v_field it_item-menge.
PERFORM bdc_dynpro USING 'SAPMM06B' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBAN-PREIS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'EBAN-PREIS'
it_item-preis.
PERFORM bdc_dynpro USING 'SAPMM06B' '0505'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBKN-SAKTO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'EBKN-SAKTO'
it_item-sakto.
Cost Center
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-KOSTL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-KOSTL'
it_item-kostl.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
Call The Transaction
PERFORM bdc_transaction USING 'ME51'.
ENDLOOP.
Close the BDC Session
PERFORM close_group.
reward if useful
Regards
Vasu
Maybe you are looking for
-
ITunes will NOT open from shortcut, cannot be updated to newer versions!
So I haven't changed computers and I'm pretty sure I hadn't uploaded a new version of iTunes when this happened, but... One day it just wouldn't open from the shortcuts (like on the desktop and the start bar). It took me forever to realize it still o
-
I cant get my apple tv to see my ipad
How do I get my apple tv to see my I pad? I want to stream my slingbox
-
The Toshiba 32hl86 has an HDMI port. I'm assuming that I can get a miniDVI to DVI converter and a DVI to HDMI converter to plug my Macbook into the TV. Has anyone had success with this? I've read some confusing threads about overscan issues and hands
-
Header Repeats When i Spool result to xls file
hey all, I know it must be a basic thing that i must be overlooking. I am spooling the result of a query in excel using code similar to as shown below SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ; SPOOL MY_TEST_FILE.xls; select * from emp; SPOOL OFF; e
-
I bought adobe creative suite 6 design and web premium
at the beginning of the year and i am trying to install it now, it is asking me for a 19 digit number as a redemption code, but i can not find this. HELP