Problem in BDC page down for VA41
Hi,
please help.
-Mahesh
Message was edited by:
Mahesh Varma
dear mahesh,
why dont you use a BAPI for creation of contracts.
This would solve some of your problems.
BAPI Name:- BAPI_CONTRACT_CREATEFROMDATA
Try using this and hope this will solve your problem
Reward if helpful
Thanks
Venugopal
Similar Messages
-
In BDC Page down command is not working for MB1C T. Code
Dear Experts,
I am writing BDC for MB1C, in this to enter serial number for material, when exceeds the limit, the page down command not woking.
i wrote the below
IF sn_count = 20.
PERFORM bdc_dynpro USING 'SAPLIPW1' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RIPW0-SERNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=RWS'.
sn_count = 2.
ENDIF.
in my recording i got below
perform bdc_dynpro using 'SAPLIPW1' '0200'.
perform bdc_field using 'BDC_CURSOR'
'RIPW0-SERNR(07)'.
perform bdc_field using 'BDC_OKCODE'
'=RWS'.
please help me.sorry I missed this part with the serial numbers, I thought you were in the item overview.
-
Problem in bdc session method for tcode FS00
Hi Experts,
problem in bdc session method, when i run this program no output is shown.
Even it is not calling the transaction.
code as follows.
*& Report Z_GL_MASTER
*& CATEGORY = BDC.
*& DESCRIPTION = UPLOADING G/L MASTER RECORDS.
*& TECHNICAL CONST = FRANCIS REDDY.
*& FUNTIONAL CONST = FICO.
REPORT Z_GL_MASTER.
*& Internal Table
DATA : BEGIN OF IT_UPLOAD OCCURS 0,
SAKNR LIKE GLACCOUNT_SCREEN_KEY-SAKNR, " ACCOUNT NUMBER.
BUKRS LIKE GLACCOUNT_SCREEN_KEY-BUKRS, " COMPANY CODE.
KTOKS LIKE GLACCOUNT_SCREEN_COA-KTOKS, " ACCOUNT GROUP.
XPLACCT LIKE GLACCOUNT_SCREEN_COA-XPLACCT, " P&L STATEMEMENT.
GVTYP LIKE GLACCOUNT_SCREEN_COA-GVTYP, " P&L STATEMENT TYPE.
XBILK LIKE GLACCOUNT_SCREEN_COA-XBILK, " BALANCE SHEET STATEMENT
SHORT LIKE GLACCOUNT_SCREEN_COA-TXT20_ML, " SHORT TEXT.
LONG LIKE GLACCOUNT_SCREEN_COA-TXT50_ML, " LONG TEXT.
WAERS LIKE GLACCOUNT_SCREEN_CCODE-WAERS, " ACCOUNT CURRENCY.
XSALH LIKE GLACCOUNT_SCREEN_CCODE-XSALH, " ONLY BALANCES IN LOCAL CURRENCY.
MITKZ LIKE GLACCOUNT_SCREEN_CCODE-MITKZ, " RECONCILATION ACCOUNT FOR ACCOUNT TYPEGLACCOUNT_SCREEN_CCODE-MITKZ
XOPVW LIKE GLACCOUNT_SCREEN_CCODE-XOPVW, " OPEN ITEM MANAGEMENT.
XKRES LIKE GLACCOUNT_SCREEN_CCODE-XKRES, " LINE ITEM DISPLAY.
ZUAWA LIKE GLACCOUNT_SCREEN_CCODE-ZUAWA, " SORT KEY.
FSTAG LIKE GLACCOUNT_SCREEN_CCODE-FSTAG, " FIELD STATUS GROUP.
XGKON LIKE GLACCOUNT_SCREEN_CCODE-XGKON, " RELAVENT CASH FLOW.
END OF IT_UPLOAD.
*& Internal Table FOR BDC DATA.
DATA : IT_BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.
*& DATA DECLARATIONS.
DATA : V_FILE LIKE RLGRAP-FILENAME.
*& SELECTION SCREEN.
PARAMETER : P_FILE LIKE V_FILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
PERFORM GET_FILENAME.
START-OF-SELECTION.
PERFORM UPLOAD_DATA.
PERFORM BDCDATA_OPEN.
PERFORM BDC_POPULATE.
PERFORM BDC_CLOSE.
*& Form GET_FILENAME
form GET_FILENAME .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
endform. " GET_FILENAME
*& Form UPLOAD_DATA
form UPLOAD_DATA .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = P_FILE
FILETYPE = 'DAT'
TABLES
data_tab = IT_UPLOAD.
endform. " UPLOAD_DATA
*& Form BDCDATA_OPEN
FORM FOR BDC_OPEN_GROUP.
form BDCDATA_OPEN .
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = 'GLMASTER'
HOLDDATE = SY-DATUM
KEEP = 'X'
USER = SY-UNAME.
endform. " BDCDATA_OPEN
*& Form BDC_POPULATE
POPULATING BDC DATA .
form BDC_POPULATE .
loop at it_upload.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_OKCODE' '=ACC_CRE'.
PERFORM BDC_SUB2 USING 'BDC_CURSOR' 'GLACCOUNT_SCREEN_KEY-SAKNR'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_KEY-SAKNR' IT_UPLOAD-SAKNR.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_KEY-BUKRS' IT_UPLOAD-BUKRS.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_OKCODE' '=2102_GROUP'.
PERFORM BDC_SUB2 USING 'BDC_CURSOR' 'GLACCOUNT_SCREEN_COA-KTOKS'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-KTOKS' IT_UPLOAD-KTOKS.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-XPLACCT' IT_UPLOAD-XPLACCT.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_OKCODE' '=2102_BS_PL'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-GVTYP' IT_UPLOAD-GVTYP.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-XBILK' IT_UPLOAD-XBILK.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_CURSOR' 'GLACCOUNT_SCREEN_COA-TXT20_ML'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-TXT20_ML' IT_UPLOAD-SHORT.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_COA-TXT50_ML' IT_UPLOAD-LONG.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_OKCODE' '=TAB02'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-WAERS' IT_UPLOAD-WAERS.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-XSALH' IT_UPLOAD-XSALH.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-MITKZ' IT_UPLOAD-MITKZ.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-XOPVW' IT_UPLOAD-XOPVW.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-XKRES' IT_UPLOAD-XKRES.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA' IT_UPLOAD-ZUAWA.
PERFORM BDC_SUB1 USING 'X' 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_SUB2 USING 'BDC_OKCODE' '=TAB03'.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-FSTAG' IT_UPLOAD-FSTAG.
PERFORM BDC_SUB2 USING 'GLACCOUNT_SCREEN_CCODE-XGKON' IT_UPLOAD-XGKON.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FS00'
TABLES
dynprotab = IT_BDCDATA.
endloop.
endform. " BDC_POPULATE
*& Form BDC_CLOSE
FORM FOR CLOSING BDC_GROUP
form BDC_CLOSE .
CALL FUNCTION 'BDC_CLOSE_GROUP'.
endform. " BDC_CLOSE
*& Form BDC_SUB1
FORM FOR BDCDATA.
form BDC_SUB1 USING A B C.
CLEAR IT_BDCDATA.
IT_BDCDATA-DYNBEGIN = A.
IT_BDCDATA-PROGRAM = B.
IT_BDCDATA-DYNPRO = C.
APPEND IT_BDCDATA.
endform. " BDC_SUB1
*& Form BDC_SUB2
text
form BDC_SUB2 USING A B.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = A.
IT_BDCDATA-FVAL = B.
APPEND IT_BDCDATA.
endform. " BDC_SUB2
Points will be rewarded.
Thanks in advance.
Francis.Hi,
Once the program is executed..It will a BDC session..
THen you have to use the transaction SM35..To process the BDC session..
Thanks,
Naren -
Weird network problem: Ethernet link going down for few seconds, and up again
Hi,
this problem is driving me nuts for weeks now, and I've not had any success with solving it myself, so I hope someone might have a clue...
A few weeks ago, maybe 2 months, when downloading VOD content from iTunes, the download suddeny stopped after a while, saying that there is a problem with my network connection. I can then resume the download until the next connection drop occurs. iTunes was and still is the only app that makes the problem noticeable (FTP, browsing, Mac App Store etc. are working fine), however, as this also affects iDevice firmware downloads and basically everything I download via iTunes, the problem started to really annoy me. I'm not sure, but the problem might have been introduced after upgrading from Lion to Mountain Lion/10.8, which I needed for Logic X.
So here is what happens:
I have an iMac12,2, Mid 2011, 27inch, i5 2.7GHz, 16GB RAM, 256GB Apple SSD + 1TB HDD. When using ethernet, the iMac randomly loses its link to the network. My router is a FRITZ!Box 7390 (german make). There are no switches between my iMac and the router. When that happens while running ping, this is how it looks like:
64 bytes from 192.168.1.1: icmp_seq=3558 ttl=64 time=0.542 ms
64 bytes from 192.168.1.1: icmp_seq=3559 ttl=64 time=0.424 ms
ping: sendto: No route to host
Request timeout for icmp_seq 3560
ping: sendto: No route to host
Request timeout for icmp_seq 3561
ping: sendto: No route to host
Request timeout for icmp_seq 3562
ping: sendto: No route to host
Request timeout for icmp_seq 3563
ping: sendto: No route to host
Request timeout for icmp_seq 3564
Request timeout for icmp_seq 3565
64 bytes from 192.168.1.1: icmp_seq=3566 ttl=64 time=0.508 ms
64 bytes from 192.168.1.1: icmp_seq=3567 ttl=64 time=0.493 ms
And this is what the logfile contains at the same time:
28.10.13 21:36:35,000 kernel[0]: AppleBCM5701Ethernet [en4]: Link down (womp disabled, proxy idle)
28.10.13 21:36:37,099 configd[18]: network changed: v4(en4-:192.168.1.188) DNS- Proxy-
28.10.13 21:36:37,106 configd[18]: network changed: Proxy
28.10.13 21:36:37,112 netbiosd[12000]: network_reachability_changed : network is not reachable, netbiosd is shutting down
28.10.13 21:36:40,000 kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en4, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0323,0de1,0300,cde1,3800]
28.10.13 21:36:40,237 configd[18]: network changed: Proxy
28.10.13 21:36:42,544 configd[18]: network changed: v4(en4+:192.168.1.188) DNS+ Proxy+ SMB
So the ethernet interface loses the link for a few seconds, and gets back up again. It's not long enough to affect average TCP connections, however it is long enough to completely screw iTunes.
What I've tried:
- changed all cables (save the one that's going from the ethernet outlet on my room's wall to the server/router room, as it's not replaceable (running within a wall) and I really don't know why it should become faulty offhandedly)
- cycled ethernet ports at the router to make sure they're not faulty
- ping'd the router from different computers on all its ethernet ports, all working fine
- connected my iMac to router via wifi, all working fine
- bought a Thunderbolt Ethernet adapter to make sure onboard ethernet card isn't faulty: problem still there
- installed 10.9 over 10.8.5, problem still there
What I didn't check is what happens when ping'ing the router via my cables, but from another computer, as I don't have one. I will try to borrow a MacBook and check that.
So I figured it must be a local problem, as the network infrastructure itself works nicely and all cables seem to be sound. It is also not a hardware issue, as the problem occurs both with the onboard NIC and the Thunderbolt NIC. What mystifies me is that it doesn't happen when using Wi-Fi (but switching to that is not an option - it's too slow).
I tried to use both DHCP and fixed IP addresses, different IP ranges, made sure that static IPs don't collide with the router's DHCP range, updated the router firmware, updated the firmware of all Airport Express and Time Capsules I've got in my network (just to be sure), switched all energy saving settings to "Never" (as it has been suggested here from time to time), but nothing helped ... and I don't know what else to check.
I hope that someone has an idea of what's happening here!
Thanks in advance!It looks like hooking an ethernet switch between my iMac and the router did the trick. I didn't get any timeouts after I did that. It must have been a really weird incompatibility between my iMac and the router. Still have to see if iTunes gets through without losing the connection, I hope I'll be able to check that tomorrow night. I'll report back.
So maybe try just hooking another ethernet switch between your mac and the other side. It might actually help! -
Problem in BDC table control for t.code ABAVN
Facing problem in uploading asset numbers.
Requirement: - Uploading data to transaction code ABAVN.
1. After running the transaction click on multiple assets.
2. Then we enter first four fields i.e. Document date, posting date, asset value date and text.
3. After that we make entry in the list of assets field say around 200 asset numbers so that it generates only one document number.
Problem: - As I was working with BDC the problem I faced is in recording. After entering six asset numbers I have to press enter to activate the scroll bar, as I click scroll down it records full screen fields for every single scroll.
Thanks and regards,
Vishal Divekar.Hi Vishal ,
please check <b>BAPI_ASSET_RETIREMENT_POST</b>and see the Documentation for more info.
Regards
Prabhu -
IPhone Order Status page down for almost 24 hours?
I last checked the status of my iPhone order last night online at around 7:00 pm and it listed the status as "shipped" but no tracking number. The status page has been down ever since. Customer Service at Verizon also said the phones have shipped but can't provide more details.
Is anyone else having trouble getting tracking information?There is a trick for getting a FedEx reference number you can try. It is detailed in the boards, but here is the gist.
Type your location code (without any dashes).
Then type an _.
Then add your order number, but make sure it is 9 digits long by adding zeros to the front.
So, for example if your location code was "08620-01" and your order number was "87456", your FedEx reference number would be 0862001_000087456.
You can go to the FedEx website, select track by reference number, fill in the number you figured out above, put in your country and zip code, and see if they find your order. Obviously this won't work if you are being shipped via UPS.
It worked for me though. I wasn't able to find my order status or anything, but I popped those numbers into FedEx's website and my shipping information popped right up. -
ITunes Match on Apple TV problems - is it partially down for others?
iTunes Match on my Apple TV is not showing any album covers or playlists this evening. As a result I cannot connect with remote app on my ipad unless I turn match off on Apple TV. Others seeing the same issue?
Cheers
WayneI was having similar issues, a simple reboot of the device your using will hopefully fix it for you as it did for me :)
-
BDC PROGRAM WITH PAGE DOWN FUNCTIONALITY
Hi,
Can anyone provide me BDC program with page down functionality.
Regards,
SPHi ,
There is ok code i.e P+, which is the page down ,
For example if you have 5 slots in the screen and from the BDC u have to fill more than the 5 slots so we will send the FVAL to BDCDATA like 'P+' it will increse the one more page ssay like 5 more slots.
Regards,
Bharani -
BDC scroll down with OK_CODE '=P+'
Hi All,
I am facing a problem with BDC scoll down. I have written BDC for MB1C with serial numbers. i have 100 serial numbers for my 100 qty. While running BDC i am not able to fill more than 19 rows( max allowed rows for that windaw) . So i have used '=P' OK_CODE.....while excecuting this i am getting error......"P Function not defined".
Can anyone help me ........Following is the my BDC code for looping to enter serial numbers.
MOVE 1 TO v_indx.
*DO V_CNT TIMES.
LOOP AT IT_EXCEL1 WHERE WERKS = IT_EXCEL-WERKS
AND LGORT = IT_EXCEL-LGORT
AND MATNR = IT_EXCEL-MATNR
AND CHARG = IT_EXCEL-CHARG.
perform bdc_dynpro using 'SAPLIPW1' '0200'.
CONCATENATE 'RIPW0-SERNR(' v_indx ')' INTO V_FNAM.
perform bdc_field using 'BDC_CURSOR'
V_FNAM.
perform bdc_field using V_FNAM
IT_EXCEL1-SERNR.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
v_indx = v_indx + 1.
ENDLOOP.Instead of Using '=p+' try with Insert OK CODE IT WILL WORK FINE in your items table .
This is VA01 item table loop condition ..
loop at it_va01a into wa_va01a where index = wa_header-index.
if sy-tabix = 1.
concatenate 'RV45A-MABNR(' idx ')' into fnam.
perform bdc_field using fnam
wa_va01a-mabnr.
concatenate 'RV45A-KWMENG(' idx ')' into fnam.
perform bdc_field using fnam
wa_va01a-kwmeng.
endif.
if sy-tabix >= 2.
idx = 2.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=POAN'.
concatenate 'RV45A-MABNR(' idx ')' into fnam.
perform bdc_field using fnam
wa_va01a-mabnr.
concatenate 'RV45A-KWMENG(' idx ')' into fnam.
perform bdc_field using fnam
wa_va01a-kwmeng.
endif.
endloop.
Hope this will solve your issue.
Regards,
Alan Babu -
Hi
I am facing a problem in BDC ,call trasaction, for FB01
While the recording is done, the confi has BSEG-DMBTR field (Local Currecny)
and now its not there is the screen.
If i run my BDC is foreground, it says Field does not exist as sucess message and then i press enter and it let me post the record.
But in Background, its not letting me post the document.
wether its because , in background if any screen elements is message , being a succes message, it doesnot post ?
please helpHi Munish singh,
Actually this error because of currency field.
1) declare the character variable equal to the dmbtr field output length. ex: data: v_dmbtr type c length 18.
2) before passing to the screen field.
3) move itab-dmbtr to v_dmbtr.
condence v_dmbtr.
4) And pass this v_dmbtr to the screen field ....
then your issue positively will resolved.
Dont forgot to Reward me points .....
All the very best....
Regards,
Sreenivasa sarma K. -
PROBLEM IN BDC F-04 --NO PAGE DOWN
HI
Experts,
Getting problem in bdc for f-04 , The data is split on basis of
business area (gsber) , and for one business area there are more
then 2000 document number, till the screen of doc.no the data is
coming into fields but i have to put all the doc number for that
b.area. And only i can enter 16 doc.no as there is no page down i
have to enter so that it takes another 16 doc.no .
but i tried it by at new command and then i tried it by on chage of
but it picks only first doc.no its not piclking all doc.no.
LOOP AT i_final.
MOVE i_final TO wa_itab.
ON CHANGE OF wa_itab-gsber .
CLEAR w_count.
PERFORM bdc_dynpro USING 'SAPMF05A' '0122'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-NEWKO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BKPF-BLDAT'
wa_itab-bldat . "'27.07.2006'.
PERFORM bdc_field USING 'BKPF-BLART'
wa_itab-blart. "'SA'.
PERFORM bdc_field USING 'BKPF-BUKRS'
wa_itab-bukrs. "'NPIL'.
PERFORM bdc_field USING 'BKPF-BUDAT'
wa_itab-budat. "'27.07.2006'.
PERFORM bdc_field USING 'BKPF-WAERS'
wa_itab-waers. "'INR'.
PERFORM bdc_field USING 'BKPF-XBLNR'
wa_itab-xblnr. "'INR'.
PERFORM bdc_field USING 'BKPF-BKTXT'
wa_itab-bktxt. "'INR'.
PERFORM bdc_field USING 'RF05A-XPOS1(04)'
wa_itab-xpos1.
PERFORM bdc_field USING 'RF05A-NEWBS'
wa_itab-newbs. "'50'.
PERFORM bdc_field USING 'RF05A-NEWKO'
wa_itab-newko. "'9991010'.
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-WRBTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PA'.
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_itab-wrbtr. "'826532.58'.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-FIPOS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-GSBER'
wa_itab-gsber. "'1101'.
PERFORM bdc_field USING 'COBL-PRCTR'
wa_itab-prctr. "'2000'.
PERFORM bdc_dynpro USING 'SAPMF05A' '0710'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-XPOS1(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PA'.
PERFORM bdc_field USING 'RF05A-AGKON'
wa_itab-agkon. "'2810200'.
PERFORM bdc_field USING 'RF05A-XPOS1(03)'
'X'.
ENDON.
PERFORM bdc_dynpro USING 'SAPMF05A' '0731'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-SEL01(06)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PA'.
w_count = w_count + 1.
CONCATENATE 'RF05A-SEL01(' w_count ')' INTO w_bdc.
PERFORM bdc_field USING w_bdc
wa_itab-sel01.
IF w_count >= 16.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
w_count = 0.
ENDIF.
ENDON.
AT END OF gsber.
*IF W_FLAG = 'X'.
PERFORM bdc_dynpro USING 'SAPDF05X' '3100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-ABPOS'.
PERFORM bdc_field USING 'RF05A-ABPOS'
'1'.
PERFORM bdc_transaction USING 'F-04'.
ENDAT. "At end of
*ENDIF.
ENDLOOP.
PERFORM close_group.Iam doing a bdc for F-04 (post with clearing header date)
i got a file in which the data is splited on business area wise,
and when i enter the details on first screen
with post key 40 and enter after entering the details here like
busines area profit cenrter i have to click
process open item .
here i have to select the doc.no and enter acct no and again
have to process the open item .. where exactly my problem is
when i process it i will get ascreen in which
the doc.no are
from to
and i can enter only 16 doc no here but where as there are more
then 50 doc number for one businees area in file ..there is
HOPE U GOT MY POINT NOW .
REGARDS -
What is ok-code for page down in bdc (reward)
hiiii
What is ok-code for page down in bdc...HI..
here is the list..
P- : Back
P-- : Scroll to previous page
P+ : Scroll to next page
P++ Scroll to last page
PL- : Scroll to first line in page
PL-n : Scroll back n lines
PL+ : Scroll to last line in page
PL+n Scroll forward n lines
PP- : Scroll back one page
PP-n Scroll back n pages
PP+ scroll forward one page
PP+n : scroll forward n page
PPn : Scroll to start of page n
Ps- : Scroll to first column
PS++ Scroll to last column
Reward if useful
Regards
Prax -
Hi all,
I have written a BDC to call transaction OASV. I have to fill a table control which has initial 10 lines in display. I will have more than 10 items to fill in the table control. But while recording through SHDB i dont get the recording for the page down. However I tried to write the code my self with the OK_CODE as =P++. Still it is not working. It is over writing the lines again when the next set is added. Pls guide me in this.
Thanks and Regards,
Anu.REPORT zbdc_fi_oasv
NO STANDARD PAGE HEADING LINE-SIZE 255.
INCLUDE bdcrecx1.
DATA : g_filename TYPE string.
DATA : BEGIN OF itab OCCURS 0,
bldat(10) TYPE c,
budat(10) TYPE c,
monat(2) TYPE c,
bukrs(4) TYPE c,
blart(2) TYPE c,
ldgrp(4) TYPE c,
hkont(10) TYPE c,
shkzg(1) TYPE c,
dmbtr(13) TYPE c,
prctr(10) TYPE c,
END OF itab.
DATA : BEGIN OF itab_tc OCCURS 0,
bukrs(4) TYPE c,
hkont(10) TYPE c,
shkzg(1) TYPE c,
dmbtr(13) TYPE c,
prctr(10) TYPE c,
END OF itab_tc.
DATA : counter(2) TYPE n,
counter1(5) TYPE n,
ihkont(15) TYPE c,
ishkzg(15) TYPE c,
idmbtr(15) TYPE c,
iprctr(15) TYPE c.
PARAMETERS: p_fname LIKE rlgrap-filename OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_fname.
g_filename = p_fname.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = g_filename
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab.
LOOP AT itab.
MOVE-CORRESPONDING itab TO itab_tc.
APPEND itab_tc.
CLEAR itab.
ENDLOOP.
PERFORM open_group.
SORT itab.
SORT itab_tc.
DELETE ADJACENT DUPLICATES FROM itab COMPARING bukrs.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMA03B' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RA01B-LDGRP'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RA01B-BLDAT' itab-bldat.
" '01.04.2008'.
PERFORM bdc_field USING 'RA01B-BUDAT' itab-budat.
" '01.04.2008'.
PERFORM bdc_field USING 'RA01B-MONAT' itab-monat.
" '1'.
PERFORM bdc_field USING 'RA01B-BUKRS' itab-bukrs.
" '1111'.
PERFORM bdc_field USING 'RA01B-BLART' itab-blart.
" 'aa'.
PERFORM bdc_field USING 'RA01B-LDGRP' itab-ldgrp.
" '0L'.
PERFORM bdc_dynpro USING 'SAPMA03B' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RA01B-PRCTR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMA03B' '0110'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
counter = '01'.
LOOP AT itab_tc WHERE bukrs EQ itab-bukrs.
CONCATENATE 'RA01B-SHKZG(' counter ')' INTO ishkzg.
PERFORM bdc_field USING ishkzg itab_tc-shkzg.
CONCATENATE 'RA01B-PRCTR(' counter ')' INTO iprctr.
PERFORM bdc_field USING iprctr itab_tc-prctr.
CONCATENATE 'RA01B-HKONT(' counter ')' INTO ihkont.
PERFORM bdc_field USING ihkont
itab_tc-hkont.
CONCATENATE 'RA01B-DMBTR(' counter ')' INTO idmbtr.
PERFORM bdc_field USING idmbtr
itab_tc-dmbtr.
IF counter = '10'.
PERFORM bdc_dynpro USING 'SAPMA03B' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RA01B-PRCTR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=P++'.
CLEAR : counter.
ENDIF.
CLEAR : ishkzg, iprctr, ihkont, idmbtr.
counter = counter + 1.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMA03B' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RA01B-HKONT(03)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPDA'.
PERFORM bdc_transaction USING 'OASV'.
ENDLOOP.
PERFORM close_group. -
BDC F-03 (page down loading problem)
Sir,
I'm trying BDC for tcode ( clear G/L account.). With following code ..but I'm getting error
on screen number 0731 while page down loading. Please help me ...
REPORT CLEAR_ITEM.
TABLES :BKPF,RF05A.
DATA : BEGIN OF RECORD OCCURS 0,
index(001),
AGKON(16),
BUDAT(10),
MONAT(2),
BUKRS(4),
WAERS(3),
END OF RECORD.
DATA : BEGIN OF RECORD1 OCCURS 0,
index(002),
SEL01 LIKE RF05A-SEL01,
END OF RECORD1.
data dat like sy-datum.
data ibdc like bdcdata occurs 0 with header line.
dat = sy-datum - 1.
CALL FUNCTION 'UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = 'C:\'
FILETYPE = 'DAT'
* ITEM = ' '
* FILEMASK_MASK = ' '
* FILEMASK_TEXT = ' '
* FILETYPE_NO_CHANGE = ' '
* FILEMASK_ALL = ' '
* FILETYPE_NO_SHOW = ' '
* LINE_EXIT = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* SILENT = 'S'
* IMPORTING
* FILESIZE =
* CANCEL =
* ACT_FILENAME =
* ACT_FILETYPE =
TABLES
DATA_TAB = RECORD.
* 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.
CALL FUNCTION 'UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = 'C:\'
FILETYPE = 'DAT'
* ITEM = ' '
* FILEMASK_MASK = ' '
* FILEMASK_TEXT = ' '
* FILETYPE_NO_CHANGE = ' '
* FILEMASK_ALL = ' '
* FILETYPE_NO_SHOW = ' '
* LINE_EXIT = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* SILENT = 'S'
* IMPORTING
* FILESIZE =
* CANCEL =
* ACT_FILENAME =
* ACT_FILETYPE =
TABLES
DATA_TAB = RECORD1.
* 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.
*start-of-selection.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
* DEST = FILLER8
GROUP = 'F-03'
HOLDDATE = DAT
KEEP = 'X'
USER = SY-UNAME.
* RECORD = FILLER1
* PROG = SY-CPROG
* IMPORTING
* QID =
* EXCEPTIONS
* CLIENT_INVALID = 1
* DESTINATION_INVALID = 2
* GROUP_INVALID = 3
* GROUP_IS_LOCKED = 4
* HOLDDATE_INVALID = 5
* INTERNAL_ERROR = 6
* QUEUE_ERROR = 7
* RUNNING = 8
* SYSTEM_LOCK_ERROR = 9
* USER_INVALID = 10
* OTHERS = 11
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at record.
perform mapping.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'F-03'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
DYNPROTAB = IBDC.
* EXCEPTIONS
* INTERNAL_ERROR = 1
* NOT_OPEN = 2
* QUEUE_ERROR = 3
* TCODE_INVALID = 4
* PRINTING_INVALID = 5
* POSTING_INVALID = 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.
REFRESH IBDC.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
* NOT_OPEN = 1
* QUEUE_ERROR = 2
* OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
form mapping.
perform bdc_dynpro using 'SAPMF05A' '0131'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-XPOS1(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF05A-AGKON'
RECORD-AGKON.
perform bdc_field using 'BKPF-BUDAT'
RECORD-BUDAT.
perform bdc_field using 'BKPF-MONAT'
RECORD-MONAT.
perform bdc_field using 'BKPF-BUKRS'
RECORD-BUKRS.
perform bdc_field using 'BKPF-WAERS'
RECORD-WAERS.
perform bdc_field using 'RF05A-XPOS1(01)'
perform bdc_field using 'RF05A-XPOS1(03)'
'X'.
perform bdc_dynpro using 'SAPMF05A' '0731'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-SEL01(02)'.
perform bdc_field using 'BDC_OKCODE'
'=PA'.
data : A(20) type c,
IDX(2) TYPE C.
ADD 1 TO IDX.
LOOP AT RECORD1 WHERE INDEX = RECORD-index.
IF IDX > 10 .
perform bdc_dynpro using 'SAPMF05A' '0731'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-SEL01(02)'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
IDX = 1.
ENDIF.
CONCATENATE 'RF05A-SEL01(' IDX ')' INTO A.
ibdc-fnam = A .
IBDC-fval = RECORD1-SEL01.
append ibdc.
CLEAR IBDC.
CLEAR A.
IDX = IDX + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPDF05X' '3100'.
perform bdc_field using 'BDC_OKCODE'
'=BS'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-ABPOS'.
perform bdc_field using 'RF05A-ABPOS'
'1'.
perform bdc_dynpro using 'SAPMF05A' '0700'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWBS'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
endform.
*& Form bdc_dynpro
* text
* -->P_0137 text
* -->P_0138 text
FORM bdc_dynpro using program type string screen type string.
ibdc-program = program.
ibdc-dynpro = screen.
ibdc-dynbegin = 'X'.
append ibdc.
clear ibdc.
ENDFORM. " bdc_dynpro
*& Form bdc_field
* text
* -->P_0142 text
* -->P_0143 text
FORM bdc_field USING fname type string fvale.
ibdc-fnam = fname.
ibdc-fval = fvale.
append ibdc.
clear ibdc.
ENDFORM. " bdc_field
Thanking you..
Manoj.Ramesh ,
I'll advise you, not to use a bdc-programm for ta's like fb50 - What woud you do, when SAP in future changes the table control to an alv grid control ??
So i advise you , to use Bapis or the standard interface
<b>RFBIBL00</b> to post fi-documents.
Andreas -
Hi friends,
I am using BDC for MIRO....In screen number 6220 where POs and items are to filled in table control where i need to fill 100 records... When i am using page down option during recording it is capturing function code as /OO .But while running BDC program this function code /OO is becoming ineffective..means page down is not happening when '/OO' is executed....can anybody help me out in what can be done in solving the problem...
Regards.Hi Raju,
But our requirement is to to do the recording only till all the items are filled in the pop up screen..As no page-down button is available in the screen...i guess that is why page-down activity done from key-board is not working fine......Any suggestions from ur side........
Regards.
Maybe you are looking for
-
Video iChat on my iMac is not working
Video iChat on my iMac is not working. The i chat buddies screen is up all right. I can see my buddies' pictures on the screen. But I can't start the video iChat. It worked fine for a few years...suddendly it does not work???
-
sorry if this isn't the right forum, i'm looking for a relitivley cheap all in one device printer/scanner/photocopier compatible with both my MacBook Pro and my iBook G3 - could anyone recommend any? thanks
-
Trying to upgrade without a DVD reader
OK, I would love some ideas here, I have tried everything I can think of. My desktop is an iMac 17" with a superdrive running 10.4.4 My laptop is a Pismo with a G4 Proc upgrade running 10.3.9. The DVD module does not work reliably (three were replace
-
Not able to connect to CRMOD through Oracle Peoplesoft environment.
We are setting up integration of CRMOD with our internal Peoplesoft Finance application using web services from CRMOD. We are not able to connect to CRMOD through Oracle Peoplesoft integration broker. Pl assist. Peoplesoft development environment is
-
Hi every one, I have a swf file as my home page in my web site, i want to open the home page full screen, i.e. without the browser menus and scrolls. also i want to add a button in my swf, on press on it, it enter change the page view from full scree