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
Similar Messages
-
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 -
Web pages down load at snail speed
So, after years of dreaming about it I finally get to spend nearly $1400 on a new MacBook.
I got her home, set her up careful as heck to follow instructions, no problems, everything is going ok and I'm up and running.
However, it doesn't take long to realize that I'm still down loading webpages at snail speeds.
I mean basic pages off the Apple website tutorial take well over a minute to down load.
What a let down after years of dreaming I'd finally get a responsive computer.
We have a Qwest DSL modem up and running in our house so I imaged something faster.
Any suggestions on what to trouble shoot for?
Any help would be appreciated.
thank you, peterAs an experiment, try using different DNS servers. OpenDNS.org is one source:
208.67.222.222
208.67.220.220
You would set the DNS servers in the Network System Preferneces Advanced Button -
JSF page 'Initial load' problem
I've found several threads touching on this already, but none seem to have a solution.
When JSF loads a JSP page for the first time, it goes through the restore view phase which creates an initial view (as there isn't a current one to restore). It then goes directly to the render response phase.
My problem is, I have a JSP/JSF page that I pass paramaters to via html GET. For example:
http://localhost:8080/jsf/region.jsp?locationForm:directorate=1&locationForm=locationForm
Because the first load goes directly to the render response phase, the parsing of these paramaters is never done & the page does not update as expected.
The second time you perform the same request, JSF goes through the standard request processing lifecycle and works as you would expect, setting directorate to 1 in the backing bean and displaying an updated page.
Is there any way to change JSF's default behaviour on a JSP initial load to do the whole lifecycle? Is there another way to get around this, short of loading the page twice to ensure it has the right information in it (which would be quite a hack)?
I need to use html GET (as opposed to html POST) because:
I'm using a technique of a hidden iframe that loads dynamically created javascript to update a dropdown list (DDL) on the main page without reloading the page in its entirity. This is to minimise network chatter as the system will be run on a 56k network. I have an onchange event on my JSF DDL that calls javascript to reload the hidden iframe.Thanks for the replies.
I tried both of the suggested options
1. If your bean is managed (declared as managed bean in faces_config), you can set the initial value of the property as, for example, #{param.locationFor }.
Unfortunately I can't use this option as the backing bean i'm using has to be session scope. This is because the DDL options are set by the iframe page, not the main page. There could be many request/responses between client/server before the user finally presses the submit button. If I change the backing bean to request scope, I end up getting "Validation Error: Value is not valid" for the DDL because the selected ID is not in the backing bean's list of possible values for the DDL.. #{param} can't be used for session level BBs.
2. If you don't want to use the managed bean properties, you can go get your parameters in your bean's constructor.
I'm unable to use this option either. The backing bean is shared between the main page and the hidden iframe page. When the main page loads, the backing bean's constructor is called but that isn't the time when parameters need to be parsed. When the iframe page is loaded for the first time (via javascript onchange on a DDL on the main page) using http://localhost/iframe.jsf?iframeForm:ddlId=1&iframeForm=iframeForm is when I need to parse the parameters, by which time the backing bean is already instanciated and the constructor has already been called.
I'm looking at where else I could get the parameters other than the constructor. I might be able to do it elsewhere.
My guess as to why the following code works is it's not using a backing bean & isn't updating backing bean values on the first run:
<f:view>
<h:outputText value="param= #{param}"/>
</f:view>To replicate the problem, create a simple backing bean, for example:
public class sample {
private Integer selectedId
public String getSelectedId() {
return selectedId
public void setSelectedId(Integer selectedId) {
this.selectedId = selectedId;
}Then create the following sample.jsp:
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<!--
Copyright 2004 ArcMind, Inc. All Rights Reserved.
-->
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<f:view>
<h:form id="iframeForm">
<h:panelGroup>
<h:inputText id="selectedId" value="#{sample.selectedId}" />
</h:panelGroup>
</h:form>
</f:view>
</head>
</html>Then try going to sample.jsp?iframeForm:selectedId=10&iframeForm=iframeForm (Similar to the request my main page is doing via javascript to populate the hidden iframe)
The first time you do this, the text box will be populated with 0 (ie, it skipped the JSF lifecycle and ignored your 10 input). The second time and subsequent times it works as expected, with the text box containing the number 10. -
Ios 6.01 app down load problem
My new ipad started down loading os6.01 and froze. I can not turn it off or turn it on . Would like to turn off and then restart ?
Thanks,Try resetting the iPad. Hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears on the screen.
If the update froze, you may have to restore the iPad. -
Drop Down loading problem - Java Applet
Hi,
We are on the process of migrating our applet based application to SUN JVM. We have a applet drop down box in the screen which fetches the data from database when the focus is gained. The code is working fine in Microsoft JVM. But when I covert the JVM to SUN then it is not functioning correctly. on click of the drop down box for the first time it is showing gray overlapping and values are not loaded correctly. During the second click it works fine.
Please help me to resolve this issue. Attached the code also.
public void focusGained(FocusEvent e)
if (e.getSource() instanceof GUIComboBox)
try{
if(((Object)getStarter().getCurrentPanel()).getClass().getField("DWAComboBox").get(getStarter().getCurrentPanel()).equals(e.getSource()))
performShadowCall(); // DB Call
super.focusLost(e);
}//end of try
catch(Exception exp)
}//end of if
else
super.focusGained(e);
Donam.We are experiencing the same behavior with a COTS package. In our particular case we experience the behavior via SSL through a load balancer. Please let me know if you hear anything back. I will do the same. Thanks.
http://forum.java.sun.com/thread.jspa?threadID=791034
Sean
Message was edited by:
bigshunharrison -
Specific site page & link loading problem
# Question
"www.icai.org" page loads to some extent. Links on this page does not open. This happens in my current Internet service provider (BSNL) (. The page & links open with other Internet Services (say Vodafone)Is there any javascript written on page load?
-
Hi i am having problems seting up my new ipod nano. it is telling me to contact package supporter. i dont know who that is
there is a problem with this window installer package. a program for this installer to complete could not be run. contact your support personnel or package vendor.
That's perfect, thanks.
Let's start with the following user tip:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
When i click on "HTML 5" it syas Loading, but nothing seems to happen. I am using Mac.
Hi Michelle,
The screen picture I sendt initially has the text "Flash" so I clicked on
the text to see if anything happened. And there is no spinning icon that
shows that the loading is going on. But I guess I can just go to Youtube
and find the tutorial there?
I have a Mac Book Air running - OS X 10.8.5 (12F45)
Regards
Inger
On Mon, Oct 14, 2013 at 5:46 PM, Michelle Yaiser -
Down loading problems for flash player
trying to install the new flash player on my iMac OS X Yosemite 10.10.2 and it downloads to 25-30% then stops. I've ran a uninstall and tried again but still same outcome
Hello,
This morning we resolved a problem that prevented Flash Player installations from completing for some of our Macintosh users.
If you encountered this problem, please delete any previously downloaded Flash Player installer and either:
Download the installer again from https://get.adobe.com/flashplayer, OR
Download the stand-alone installer posted at the bottom of the http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-mac.html in the ‘Still having problems’ section.
If the behaviour reproduces, please clear the browser's cache and try downloading again.
Thank you.
Maria -
I have pages down loaded on my MacBook air do I have to buy it for my iPhone and iPad
I have pages installed on my MacBook air do I have to buy
It separately for my iPhone and iPad ?The Versions for iPhone and iPad are different to the version on your Mac... So... YES...
iOs as opposed to OS X -
This discussion page's loading problem
Hi, thanks for reading...
The 'more' at the bottom of this page, does not show up unless refreshing the page, plus when clicked goes to no pages.
Is anyone else having this issue?
Thanks.
Warmly,
HopeHi Carolyn...thanks for replying....I just realized I needed to click Discussions tab at the top to see more posts.
Actually had meant at the bottom left under all the post listings there can be, if I refresh the page, the word 'more'....but when clicking it nothing happened....
was trying to see more qustions. But that link , I guess is really not a link.
So went to 'discussions' and now I see how to see more page...thank you darlin....appreciate...
wamly C
ps, am new to this forum and still trying to figure out how it works.... -
I just purchased a one year subscription to Acrobat XI but can not seem to download the program. All I get is the "one month free trial" version. I get part way through the download and it seems to stop. How do I download the software?
Sign in or activation errors
If you have download issues, simply use the trial and install it. It will activate based on your sign-in. An alternate download method is explained here:
Direct Download Links for Adobe Software
Mylenium -
App down loading problems. Please help!
All of the sudden I can't download even free apps. It asks me to confirm my billing address but when I do it keeps saying security code is invalid. I tried a different credit card and the same thing is happening. Please help!!
You are too young. As for payment:
iTunes Store- Accepted forms of payment -
Creative Cloud Down Load Problems
Having troubles downloading the CC desktop. I get an error code:1
Hi Todd,
Kindly try the steps mentioned in the link below and re-install Creative Cloud.
Error: "Installer failed to initialize" | Windows
Thanks,
Atul Saini
Maybe you are looking for
-
PL/SQL to generate XML compliant with an XSD
Please excuse me if this has been asked elsewhere. I'm trying on Oracle 9.2 to output XML that will comply with a predefined schema. I've started out by creating various object types and an object view that matches the xml schema definition, and can
-
Maintenance Release Issue - 11.1.2.0 to 11.1.2.3
Gurus, I have been facing a couple of issues post applying MAINTENANCE release on 11.1.2.0 to bring it to 11.1.2.3 release. I am not able to launch Dimension library / Application library / Data Syncronization etc Every time I try to open it I get th
-
Bridge cs5 loses photos in collections
I am having trouble w/ bridge CS5 not keeping photos in collections when I put them there. I have only recently started using the collections, so I am not sure that I fully understand them, I did change all the file name on my photos from way back w
-
My client gave a dmp file exported by emp. Export environment is Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production. Redhat 5.5. However, when I try to import it under win7. Imp.exe throws those erros. IMP-00010: not a valid
-
ibook app is not working in my ipad2, i can see stored books but unable to open them. this happened since i hv updated to ios6. ipad wasnt jailbreak. kindly assist me