How to clear entries in a Recon GL account?
How to clear entries in Recon GL account. When we try to post using f-03, open items does not become visible and We can not go for open item management for particular GL. Please tell me the alternatives for this process.
The forum [FPM - General|Enterprise Performance Management (SAP EPM); in which you originally posted your question deals mainly with the financial performance applications otherwise known as Enterprise Performance Management (EPM) carrying the BusinessObjects brand. Your question pertains to SAP [ERP Financials|SAP ERP Financials; which is covered by another forum. Therefore your message has been moved. Please adjust any bookmarks you might have and post to the appropriate area in the future, that way you are assured you will have the right audience reading your posts.
Thanks and best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Customer Solutions Adoption (CSA) team
Similar Messages
-
How to transfer balance of one Recon. Account to another Recon.Account
Hi,
The scenario is that we want to change Reconciliation Account of all our vendors/customers. So we want to transfer the balance of old Recon Account to new Recon. Account.
How it would be possible?
Thanks&Regards,
Muralihi P. M. Dhar
You cannot post values directly from recon. account to another recon. account. On the other hand you cannot change the recon. account of a customer/vandor when the balance is not zero.
Therefor you have to go this way:
1. Create a technical vendor/customer with technical recon. account. (Technical means used only for this purpose).
2. Post all values from all customers/vendors to this Technical customer/vendor (i. e. all balances will be zero on all customer/vendor)
3. Change the recon. accounts of all customers/vendors
4. Post back all values from technical customer/vendor to real customers/vendors
Of course steps 2, 3 and 4 should be done by programs not manually.
I hope this helps
Eric Cartman -
How to clear entries from a table view
Hi All,
I am using a tableview in a BSP page. I am setting the attribute allrowseditable = 'TRUE'. The internal table I am using for the tableview contains only initial lines. Once the tableview is displayed i am entering some values on the cells. But even after triggering the DO_REQUEST the values i entered in the tableview remains, its not getting cleared eventhough my internal table contains only initial lines. I am not getting back the values from tableview in HANDLE_DATA or EVENT. Can anyone tell me why the cells in tableview is retaining the values. How can i overcome this.
Thanks,
regards
Vishnu AravindHi Sebastian,
The following is the code of my view
<%@page language="abap"%>
<%@ extension name="bsp" prefix="bsp" %>
<%@ extension name="htmlb" prefix="htmlb" %>
<%@ extension name="xhtmlb" prefix="xhtmlb" %>
<%@ extension name="PlmHelp" prefix="plmhelp" %>
<htmlb:gridLayout columnSize="1"
rowSize="2"
cellSpacing="10">
<htmlb:gridLayoutCell rowIndex="1"
columnIndex="1">
<htmlb:tableView
id = "attribute1"
allRowsEditable = "X"
table = "<%= controller->tbl_attributes %>"/>
</htmlb:gridLayoutCell>
</htmlb:gridLayout> -
How to add entries in possible fields in Account assignment model/Note 2596
Hi Friends,
I want to know How to apply OSS Note 2596, The basic requirement is to to add entries in the list of possible fields in Account assignment model( Exactly in program SAPDFKA6 in screen 120).
I found the note 2596 to achieve this, and the field that I want to add is KMZEI-PAOBJNR.
I gone through the note and it is very confusing for me .. If any one knows how to achieve this or how to apply this note, please let me know.
Thanks,
RkI got this myself.
Thanks,
Rk -
How to make the bank clearing entry in SAP without uploading the Bank statement
Hi All
I am working on a project where we use SAP FSCD for making payment out for Claims . Now when we make the claims payout we clear the open items in FSCD using the FPYI run ( Payment run) and produce an output file. Now the payment run creates the subledger entries. We will not receive any bank statment to FSCD for making the bank clearing entries in the GL accounts. Is there a way I can trigger this bank clearing entry without receiving the bank statement and uploading it...
Thanks and Regards
Varadarajan BHi,
You can do this in similar way like F-02 (transfer) & F-03 (clear). You can use BDC for this and schedule this as a background job.
Your question is more related to FI. Check this approach with your FI consultant and for any other impact in FI.
Better to post such queries in FI community as you might get better answers / solutions than out here.
Regarding your requirement: By not receiving bank statement for payouts... it seems that the bank is going to process all the payouts with 100% success rate which is an ideal case and somewhat unusual.
Thanks -
How to clear text fields when the user navigates back to the screen
Hi,
Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
ThanksThis code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.containers.FormItem;
import mx.controls.TextInput;
import mx.events.IndexChangedEvent;
import mx.core.Container;
private function clearSreen(evt:IndexChangedEvent):void{
var view:Container = tn.selectedChild as Container;
for each(var child:Object in view.getChildren()){
if(child is FormItem){
var subchild:DisplayObject = child.getChildAt(0);
if(subchild is TextInput){
TextInput(subchild).text = "";
]]>
</mx:Script>
<mx:TabNavigator id="tn" resizeToContent="true"
change="clearSreen(event)">
<mx:Form id="frm1" label="View Number One">
<mx:FormItem label="First name:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="Last name:">
<mx:TextInput/>
</mx:FormItem>
</mx:Form>
<mx:Form id="frm2" label="View Number Two">
<mx:FormItem label="Address1:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="Address2:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="City:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="State:">
<mx:TextInput/>
</mx:FormItem>
<mx:FormItem label="Zip code:">
<mx:TextInput/>
</mx:FormItem>
</mx:Form>
</mx:TabNavigator>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services -
How to clear vendor open items if vendor invoice currency and payment currency different
Hi All.
How to clear vendor open items through f-44 if vendor invoice currency is EUR , payment currency is USD but local currency is INR
while clearing through f-44 system showing error as "to large for clearing clearing is not possible"
I checked all configuration, configuration wise no problem
BR.
ChandraHi Chandra,
You chose any one of the currency i.e. EUR/INR/USD for clearing in F-44. After selecting line items for clearing, system will show a difference. Click on over view button and manually write off the difference by selecting any one account i.e. dummy or small diff.account, after that click on process open items then system will show the difference 0 and simulate the document, here system will post gain/loss exchange GL postings along with other line items. After save the document, manually pass journal entry to dummy account and gain/loss account. I have explained clearly in the below example.
Invoice is in USD - 1000 & INR - 60000
Payment is in INR - 60000
Now I am going to clear these in INR currency in F-44 on 31.03.2015. On this date the exchange rate for USD is 60.10. At the time of clearing system will post the below entry
Vendor A/c Dr 60000 (invoice)
Vendor A/c Cr 60000 (Payment)
Gain from exchange rate A/c Cr 100 (60000 - 60100)
Small diff.write off A/c (or) Dummy A/c Dr 100
After done the above posting, we have to pass below manual JV in FB01
Gain from exchange rate A/c Dr 100
Small diff.write off A/c (or) Dummy A/c Cr 100
Regards,
Mukthar -
How to clear UWL items ?
Hi,
We are having so many entries or pending tasks in UWL of each user .
How to clear them ? And I did not find any delete or remove button by selecting any entry .
How to delete those entries one by one and all entries at once ?
Thanks,
SuryaHi,
I hope you should clear them in workflow of backend .
consult workflow forum
Remove from transaction SWIA, choose logically delete on the highest
level
Koti Reddy -
What is the purpose of F-03 clearing? How to clear GL account there in F-03
HI,
What is the purpose of F-03 clearing? How to clear GL account there in F-03.Please help me in understanding the concept.
Thanks
SupriyaHello,
There are cases where you pass some manual entries which might not have cleared against the other related item, THOUGH the balance has been ZERO. Like cases where you reverse logistics invoice through MR8M, then entry gets reversed but they are still open items. Like some GRIR accounts might have debit and credit entries for same purchase order and the balance MIGHT have become ZERO, but still they are open item. To clear all these open itesm (changing the status of the open items to cleared items, you need to use F-03)
Please go to F-03 and give the GL account which want to manually clear the debit and credit items.
Normally you will this kind of activity for clearing account, where there is no automatic clearing mechanism explained in OB74.
now click on open items. (if you know any specific things like document number etc. you can fill them, then they will act as a FILTER and only those document numbers you feeded will be appeared)
Now select the items you want to clear. Deselected all other you do not want to clear. Selected items will be in blue colour and the difference at the end of the screen MUST be ZERO to post (unless you configured otherwise)
Click on save button.
The entries passed will GL Account A Dr and GL Account B Cr. Meaning that there is no implication but posting the debit and crediting the same account and clearing the status of the line items from OPEN to CLEARED.
Hope I am clear.
Regards,
Ravi -
How to clear the line items...
hello friends,
I am not able to clear line items with F.13 transaction for special G/L Account..i am inputing the values with the Transactions F-48 and F-43(In each transaction v have assigned the same assignment (BSIK-ZUONR)) line items has to be cleared based on Assignment....we can view the details in Tr.code-FBL1N.
Can any one help me...plzzz
vamshiHi PK,
1. Should we maintain OIM for all Excise G/Ls (BED, ECess, SHECess)?
- Please DO NOT maintain OIM on BED, ECESS and HECESS, only to be maintained for Cenvat Clearing Account. Also note that clearing of Cenvat Clearing is not easy, as in standard SAP, the assignment field is not updated with the same information for the Dr. and cr. line items of Cenvat Clearing Account. You need to use an exit in Substitution for it to populate the P.O. no. and line item at the time of MIRO.
2. How to clear the BED Excise GLs which is with OIM in our system, it is thru F.13 only?
You can use F.13 only if the entries are matching not otherwise, else clear all of them manually if you have good control of your account balances.
3. Can we activate or deactivate OIM any point of time, I mean can it be activated in case the G/L balance amount is not ZERO?
OIM activation for a GL - Refer Note No.1356457.
OIM Deactivation : You can deactivate OIM after making the balance Zero on that Account and by changing the Message No. FH 190 to warning in OBA5.
4. What is the use of T Code J2IUN, I have gone thru the SDN links, but I am not able to execute the screen. What parameter should we select while executing J2IUN, when we use Pay cenvat from ser tax cr and Pay ser tax from cenvat cr.
J2IUN is to utllize Excise Duty. The liability of Excise duty is utilized from Excise balances of BED, PLA , Service tax etc.. as per business requirements.
Hope this helps you.
Regards,
SAPFICO -
How to clear local currency balance in foreign currency account
hi,
i have a bank account in EUR but local currency is USD.
in the account balance, it has 0 in EUR but has balance in USD. i need to clear the amount in USD.
i tried f-02 to post EUR 0 and balance which in USD i enter in amount in local currency field but when simulate, the system converts the USD amount for EUR and EUR with an amount.
may i know how to clear local currency balance for a foreign currency bank account which has ZERO balance.
thanksDear ,
can u give me the details
what is the invoice transaction (Entry
how u clear that transaction (entry)
what is the difference values.
Regards
radha -
I want to know how to clear the text area by the push off my next question button and ask a new ques
I want to know how to clear the text area by the push off my next question button and ask a new question - also I want to know how to code in my project to where a user can enter a math question in one border container and the answer enters into the next container
heres my code so far
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" backgroundColor="#1E5C75">
<fx:Script>
<![CDATA[
protected function button1_clickHandler(event:MouseEvent):void
//convert text area into labelid to be identified by actionscript
richTextLabel.text = myArea.text;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<!--container 1-->
<s:BorderContainer borderWeight="7" x="28" y="10" width="200" height="138">
<s:layout>
<s:VerticalLayout paddingTop="10" paddingBottom="10"
paddingLeft="10" paddingRight="10"/>
</s:layout>
<!--data Entry control-->
<s:TextArea id="myArea" width="153" height="68"/>
<!--end of data entry control-->
<s:Button width="151" label="ask a question" click="button1_clickHandler(event)"/>
</s:BorderContainer>
<!--container2-->
<s:BorderContainer borderWeight="7" x="509" y="10" width="200" height="138">
<s:layout>
<s:VerticalLayout paddingTop="10" paddingBottom="10"
paddingLeft="10" paddingRight="10"/>
</s:layout>
<!--data entry control-->
<!--convert tne data entry control into a label id in actionscript-->
<s:Label id="richTextLabel" width="153" height="68"/>
<s:Button width="151" label="next question" click="button1_clickHandler(event)"/>
</s:BorderContainer>
</s:Application>This is a user to user support forum. We are all iphone users just like you.
You are not addressing Apple here at all.
This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
"it's too fragile"
No it is not. i have never damaged one, nor has anyone I know.
" U loose data when Ur phone is locked"
No you don't. Why do you think this?
"and there is no customer support!!! "
Wrong yet again. Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
"but I will go back with Blackberry "
Please do.
Good ridance -
F.19 show accrual amount, how to clear it?
Hi,
I come across with an issue.
We wrongly posted an debit note to vendor. It supppose to post an invoices to system.
We have done payment and bank recon, it no possible to reverse the Debit note.
This amount is hang at accrual there.
F.19 is still show accrual amount, how to clear it?HI ,
Thanks for your suggession.
The problem is, we have post vendor payment, and bank recon. It seem like not possible to reverse the document.
Any other suggession? -
How to Clear B1,B2 Clusters in Time Mgmt???
Hi Folks,
Pls tell me how to clear B1,B2 clusters in Positive Time Management????
I tried clearing the data'a in 2011 infotypes, but running time evaluation still data's are read from the cluster b1???
Regards,
SanthoshHi Santhosh,
If you know how to delte the personnel nums, you will find the B1 B2 clusters entries there. So go there and delete them.
Regds
Amit -
How to clear the table control content
Hi All,
I am doing BDC for cost estimate change. In this the transaction KKPB contains table control. So when ever i process with particular cost estimate, i need to fill the table control with the values. Here when i am doing the BDC for change, i need to clear all the contents of the table control then i need to fill with new entries.
So my problems is how to clear the table control entriee?? please help me in this??
Many Thanks,
Raghu.Hi this might help u.
Check the below link.
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
THis is example to upload the Bank details of the Vendor which has the TC.
REPORT zprataptable2
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
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-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
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'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-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'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
Header file:
1 63190 0001 0001 0001 mr bal188 b in 31000 a1 inr
2 63191 0001 0001 0001 mr bal189 b in 31000 a1 inr
TC file:
1 in sb 11000
1 in sb 12000
1 in sb 13000
1 in sb 14000
1 in sb 15000
1 in sb 16000
1 in sb 17000
1 in sb 18000
1 in sb 19000
1 in sb 20000
1 in sb 21000
1 in sb 22000
2 in sb 21000
2 in sb 22000
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.
with regards,
Hema Sundara.
Maybe you are looking for
-
How can I buy an app when my computer isn't supported?
I have access to two Macs. A 32-bit iMac and a 64-bit iMac. The 32-bit I have at home and that's where I do a lot of web surfing. When I see an app that goes on sale, I'd like to buy it. However if the app is 64-bit I'm not allowed to. I have to wait
-
Problem in appending text in textfield
When i am appending the text in Jtextfield component, It is appended in textField I can see these text on screen untill screen is filled. But when all rows is filled and any text is appended in textfield, i can not see these text. If i want to see th
-
New vision 10.9 issues on Finder can not work
I have one MacBook Air with Finder problem from I update to 10.9 vision, the finder can not be open it, even I ise command+alt+esc to press force reatart Finder, but problem could not finish, The issues same as before at restart system, who can tell
-
How to install a phonegap plugin in Dreamweaver
Hi all, I'm new to mobile developement and I'm trying to create a application wich open local PDF files. I've found a plugin that do just that, but I haven't found a way to install the plugin within Dreamweaver. Plugins already wrapped in Phonegap wo
-
In the Firefox help video they show a Firefox icon in the very top left of the window. This is a drop down tab where one of the items is the clear history option. I do not have this tab and have tried reinstalling Firefox but it is still not there. O