Problem while doing bdc for fv60
Hi frends,
I got problem while doing BDC for fv60 tcode.i have given
header items:
vendor number
invoice date
posting date
amount
item data:
g/l acc no: 100000
amount 1000 whatever
these are all given in recording
in recording after all giving this data if we click on park it is telling "parking not possibe duiring batch input".
can any body tell me the process for recording shdb and after that in bdc how can we give multiple line items for fv60
thanks,
naveen.
I don't think you can use FV60 in batch input. Your options are to use transaction FBV1 or bapi BAPI_INCOMINGINVOICE_PARK.
Rob
Similar Messages
-
Hi all,
i am doing BDC for XK01 with Line Item for Bank Details(Table Control..)
With 3 Internal table
IT_dummy to get the flat file
IT_vend for Header details
IT_bank for Item Details
in this there is a Nested loop
Loop at it_vend.
perform bdc
loop at it_bank.
concatenate................
endloop.
endloop.
because of the above nested loops..it's bit slow..
& i am trying to do with a single internal table..
The problem is..
with the header data it's not picking all the item data(it's picking only one..)..help me in resolving the problem..
Below the code..
REPORT ZMM_BDCTC1 NO STANDARD PAGE HEADING LINE-SIZE 255.
PARAMETER:P_FILE TYPE RLGRAP-FILENAME.
DATA BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF IT_DUMMY OCCURS 0,
TYP,
DES(255) TYPE C,
END OF IT_DUMMY.
DATA:DELIMITER VALUE ',',
cnt(4) TYPE N,
L_FNAM(30) TYPE C,
FILENAME TYPE STRING.
TYPES:BEGIN OF TY_FINAL,
N(4) TYPE C,
LIFNR TYPE RF02K-LIFNR,
BUKRS TYPE RF02K-BUKRS,
EKORG TYPE RF02K-EKORG,
KTOKK TYPE RF02K-KTOKK,
NAME1 TYPE LFA1-NAME1,
SORTL TYPE LFA1-SORTL,
LAND1 TYPE LFA1-LAND1,
AKONT TYPE LFB1-AKONT,
FDGRV TYPE LFB1-FDGRV,
WAERS LIKE LFM1-WAERS,
M(4) TYPE C,
BANKS TYPE LFBK-BANKS,
BANKL TYPE LFBK-BANKL,
BANKN TYPE LFBK-BANKN,
KOINH TYPE LFBK-KOINH,
END OF TY_FINAL.
DATA: IT_FINAL TYPE TABLE OF TY_FINAL,
WA_FINAL TYPE TY_FINAL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
IMPORTING
FILE_NAME = P_FILE.
FILENAME = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = FILENAME
FILETYPE = 'ASC'
tables
data_tab = IT_DUMMY.
START-OF-SELECTION.
LOOP AT it_dummy.
IF it_dummy-typ = 'H'.
SPLIT it_dummy-des AT delimiter INTO WA_FINAL-lifnr "Populating Header Table
WA_FINAL-bukrs
WA_FINAL-ekorg
WA_FINAL-ktokk
WA_FINAL-name1
WA_FINAL-sortl
WA_FINAL-land1
WA_FINAL-akont
WA_FINAL-fdgrv
WA_FINAL-waers.
WA_FINAL-N = WA_FINAL-N + 1.
WA_FINAL-M = WA_FINAL-M + 1.
ELSEIF it_dummy-typ = 'I'.
SPLIT it_dummy-des AT delimiter INTO WA_FINAL-BANKS
WA_FINAL-BANKL
WA_FINAL-BANKN
WA_FINAL-KOINH.
APPEND WA_FINAL TO IT_FINAL.
ENDIF.
ENDLOOP.
LOOP AT IT_FINAL INTO WA_FINAL.
WRITE:/ WA_FINAL-N,
WA_FINAL-LIFNR,
WA_FINAL-BUKRS,
WA_FINAL-EKORG,
WA_FINAL-KTOKK,
WA_FINAL-NAME1,
WA_FINAL-SORTL,
WA_FINAL-LAND1,
WA_FINAL-AKONT,
WA_FINAL-FDGRV,
WA_FINAL-WAERS,
WA_FINAL-M,
WA_FINAL-BANKS,
WA_FINAL-BANKL,
WA_FINAL-BANKN,
WA_FINAL-KOINH.
ENDLOOP.
data: WA_FINAL1 like line of IT_FINAL.
clear WA_FINAL1.
******************BDC STARTS***********************
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = 'ZMM_BDCTAB'
KEEP = 'X'
USER = SY-UNAME.
Clear wa_final.
LOOP AT IT_FINAL INTO WA_FINAL.
WA_FINAL1 = WA_FINAL.
CLEAR BDCDATA[].
AT NEW N.
cnt = 1.
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'
WA_FINAL1-LIFNR.
perform bdc_field using 'RF02K-BUKRS'
WA_FINAL1-BUKRS.
perform bdc_field using 'RF02K-EKORG'
WA_FINAL1-EKORG.
perform bdc_field using 'RF02K-KTOKK'
WA_FINAL1-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-NAME1'
WA_FINAL1-NAME1.
perform bdc_field using 'LFA1-SORTL'
WA_FINAL1-SORTL.
perform bdc_field using 'LFA1-LAND1'
WA_FINAL1-LAND1.
perform bdc_dynpro using 'SAPMF02K' '0120'. "ERROR CLEARED
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(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
ENDAT.
*ENDON.
IF WA_FINAL1-N = WA_FINAL1-M.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO L_FNAM.
perform bdc_field using L_FNAM
WA_FINAL1-BANKS.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO L_FNAM.
perform bdc_field using L_FNAM
WA_FINAL1-BANKL.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO L_FNAM.
perform bdc_field using L_FNAM
WA_FINAL1-BANKN.
CONCATENATE 'LFBK-KOINH(' cnt ')' INTO L_FNAM.
perform bdc_field using L_FNAM
WA_FINAL1-KOINH.
*ENDDO.
cnt = cnt + 1.
ENDIF.
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'.
*AT NEW LIFNR.
perform bdc_field using 'LFB1-AKONT'
WA_FINAL1-AKONT.
perform bdc_field using 'LFB1-FDGRV'
WA_FINAL1-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'
WA_FINAL1-WAERS.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
AT END OF M.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XK01'
TABLES
DYNPROTAB = BDCDATA.
ENDAT.
CLEAR WA_FINAL1.
CLEAR WA_FINAL.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
*********************BDC ENDS***********************
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> NODATA.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Flat File is..
HAAA45,1000,1000,0002,NAME45,N,IN,31000,A1,USD
IIN,1000,1021,Name45
IIN,1000,1022,Name45
HAAA50,1000,1000,0002,NAME50,N,IN,31000,A1,USD
IIN,1000,1023,Name50
IIN,1000,1024,Name50Regarding avoiding the loop I have a suggestion, though I have not tried this .
SAP help says " Using the internal table bdc_tab, you can provide any number of screens of the called transaction with input and user actions. " .
Above implies you can load all records in the itab bdc_tab when doing call transaction. Say, your bdc_tabl has 30 records for 1 pass of the transaction. You need to update 10 vendor records. You simply load up all 300 records into bdc_tab. After every 30 record loads, you simulate a 'SAVE' press in your program but do not leave the transaction. Rather you simulate the keystroke that takes you to the first screen of XK01 after the save if not aready there, and start loading up the next transaction. -
Problem while doing PGI for Returns Delivery
Hi,
We are facing some problem which doing PGI for a returns delivery. Our scenario is HU and WM managed. After creation of delivery I have created a TO and has two different valuation type of same material. Total quantity in TO is 2, 1 of each valuation type. So, automatically, batch split happened for the line item in delivery.
Now when I am trying to do PGI for this delivery, I get en error message saying "Enter Valuation Type". The movement type used here is 161 (Vendor Returns)
Same thing is happening successfully for movement type 643 (Transfer inter company code). What I can gather is that while creating 161 document against delivery system is not automatically taking the valuation types mentioned in line item of delivery.
Let me know possible reasons for this error and resolution.
Regards,
VishalImplement the OSS note 965985
-
How to give line items in flatfile while doing BDC for Table control
Hi all,
I am writing BDC for Multiple line items and Transaction is : FSE5N.
How do i give the data in the flat file. I mean how do we give the multiple line items in flat file , i.e for second line item again we have to header data or not ?
ex:
1015;ALL;demo;kr;INR;01;0001;3000172;100
1015;ALL;demo;kr;INR;01;0001;3000172;200
for first lineitem : 3000172;100
for 2nd line item : 3000172; 200.
header data : 1015;ALL;demo;kr;INR;01;0001.
Thanks in advance
krupaliHii ,
u can give in the same format as u have done in the example.
A B C D E F G H I
1015;ALL;demo;kr;INR;01;0001;3000172;100
1015;ALL;demo;kr;INR;01;0001;3000172;200
and while writing the loop u can give
loop at it_head.
loop at it_head where a = it_head-A and b = it_head-B ..........upto G = it_head-G.
endloop.
endloop.
check this
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Neeraj -
I am having problem while doing vf01 for credit memo
I have done va01 for credit memo.
but when i m doing vf01 for credit memo it is showing account detemination error.
pls help me.Hi suchinder
Go to t.code VKOA and check wheather for the credit memo billing document type your account determination procedure KOFI00 has been assigned or not. If not assigned assign it and then save the billing document again then it will be forwarded to FI .
Regards
Srinath -
Problem while doing GR for subcontracting
This is Naresh. When Iam posting GR for subcontracting material an error is coming as "G/L account 400020 does not exist in chart of accounts INT". And when Iam trying to create G/L account in INT with my company code(using FS00) another error is coming as " description in language EN already created". Can anyone help me.
you have chosen a pretty bad subject.
with this subject you will find people that have knowledge in subcontracting, but your issue is in G/L account maintenance.
Guys that are are experienced in that field will probably not open your thread.
best you create your thread again with a better subject and in a different forum: in the finance forum. -
Problem while doing invoice for Credit memo request
Hi all
I very well known that Out boud Delivery is not needed for Credit memo request but after saving the CMR and when i raise the Credit Memo (VF01) system is showing a error message saying "PGI not done for Outbound Delivery 30047402"
In CMR document type i have set the order related billing and i have removed the billing block also
I have raised the CMR based on Invoice
Kindly help me in this regard
Regards
BMSHi Raj Aryan Malhotra, Thanks for ur reply
The setting which u said are already there
The second one that is, change the copying requirement of header to 11. i did this but this time the message was different "The document is not relevant for billing" . After checking the log i could the follwoing info
Client 240
Group Number
Sales Document Number
Item Number of the SD Document 000000
Schedule Line Number 0016
Counter in Control Tables 00
Message Identification VF
System Message Number 016
Output Type I
Message Variable 01
Message Variable 02
Message Variable 03
Message Variable 04
Group Type F
Kindly help me to resolve this also
Regards
BMS -
Error while doing IV for Service Delivery Payment
Dear Support,
There is Problem while doing Invoice for delivery Payment(Agent commission) in case of Service Order having without
account assingment.
While doing Invoice for that Delivery cost , system is giving a error message 'Enter a GL Account'.
Pls provide some solution regards .
Ragerds
MukeshHi,
if your service order is a service purchase order, please read the following:
Planned delivery costs are not supported for service orders.
There is no plan to change this in the near future.
Delivery costs are generally not supported in external services
management and in case of blanket purchase orders, item category D or B.
Instead of representing delivery costs via conditions, in case of
service documents, freight costs and other, SAP recommends to add in
additional service lines. (note 381030 )
For the future we recommend to use additional service line instead
of planned delivery costs condition. There is no problem to post
invoice for different vendor for particular SES created for service
line that constitutes delivery costs.
Regards,
Edit -
Hi,
I am doing a bdc program on t.code MIR4 (Display invoice screen).The problem is this screen has a SGA/GPA set so that whenever you into this transaction the last entered value is shown in the first screen.
While doing BDC i deleted the old invoice content (on the first screen) and entered my new invoice number and did the recording.
Now when I run my call transaction using this BDC table the process get stopped in the first screen itself and the old value (set by SGA/GPA) is not removed and hence my bdctab value is not populated and it is showing a error "field 000 not present is program SAPMIR4"
PS : after that i checked my recording and saw that the place where I am clearing the old value on the first screen and entering my new value, nothing is recorded in place of BDC_OKCODE, only bdc_fnam and fval have my new entered value. Maybe it is because the clearing of data is not recorded by my recording...But to record that as there is no okcode for that?
Please advise how to proceed?Hi priyasingh ,
just go through the following Code .
There is no problem in the flow .You just need th eclear the data in the internal table BDC_DATA so that there are no prevoius values .
form BDC_FIELD using FNAM FVAL.
IF FVAL <> ''.
CLEAR BDC_DATA.
BDC_DATA-FNAM = FNAM.
BDC_DATA-FVAL = FVAL.
APPEND BDC_DATA.
ENDIF.
endform.
and
form BDC_DYNPRO using PROGRAM DYNPRO.
CLEAR BDC_DATA.
BDC_DATA-PROGRAM = PROGRAM.
BDC_DATA-DYNPRO = DYNPRO.
BDC_DATA-DYNBEGIN = 'X'.
APPEND BDC_dATA.
endform.
Hope this may help you .
Thanks and regards
Aditi Wason -
Error while doing MIGO for a sub-contracted item
Hello to Everybody,
I am facing below problem -
Error : Incorrect CCtr <Cost Center Code> with this account (CCtr category must=D) for
<Item Code> , while doing MIGO. (for receiving sub-contracted item from vendor).
May I request for possible solution to above error ?
regards,Dear Sanjay,
You can determine the cost object for the posting of the costs in the transaction OKB9.
Following thread should resolve this issue:
Re: cost of subcontracting
Regards,
Naveen. -
What are the main steps to be taken care while doing recording for LSMW
Hi,
I am facing problem in LSMW.
Can anybody suggest me that What are the main steps to be taken care while doing recording for LSMW for recording mm01 ?
thanks'
nareshHi,
Recording in LSMW is similar as SHDB.
in LSMW after you give Project-Subproject and Object.
1)Go to-> Maintain Object Attributes -> double click
2)Press Display/Change Button at top left to make editable mode.
3)Select radiobuton -> Batch Input -> Give Recording name say Z_mm01
4) Click the Recording Overview boton on right -> Give TCode which u want to record....
Rest refer the Document link attached.
Please find the links to various threads on the same.
Re: LSMW - Using a BAPI
BAPI, IDOC in LSMW
Upload the data in LSMW using BAPI
This one is the most complete document for the same
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://service.sap.com/lsmw.
Regards
Kiran -
While doing BDC in VL02N , How do update POSNR
While doing BDC in VL02N how to update POSNR in BDC program.I need to choose purticular line number and should update that line item.kindly send me a BDC sample code for this .
You better use a BAPI like BAPI_OUTB_DELIVERY_CHANGE.
Else you could use function code POPO_T "Place cursor" and then you will have to use field names like LIPSD-G_LFIMG(01) in your BDCDATA.
Regards -
Facing problem while doing MIRO
Hi gurus,
I facing problem while doing MIRO, system showing the message "Customization for "company code" J_1iindcus missing in the table"
pls helpHi,
Please do customization for India Localisation-Phase-II.
In transaction J1IT, maintain company code settings.
J1IT->Global Settings->Company Settings
Reward if useful. -
Error while doing GR for scheduling aggrement
Dear Experts,
We are facing error while doing GR for scheduling aggrement.
we have done the following steps.
1) Scheduling aggreement in ME31L
2) Released in ME35L
3) Mainatined Sch.Agmt Schdule in ME38 for todays and date 200 qty and other line is 800 qty.
When we are trying to do GR in MIGO system is giving the following message.
Document 5500000152 does not contain any selectable items
can I know what I have missed in the above steps.
Please guide me to resolve this.
Regards,
PrasadHi,
Please check Please check if Gr is already done against this document. Also please check whether you have attached SA in the source list with line items.
T-code:ME01
Enter Mat.code & Plant.
In the next screen pl.do the following:
Valid from - commencement date of the SA
Valid to - End date of the SA
Vendor - Vendor on whom the SA is released
POrg - Your purchase organisation
PPL - Leave it blank(This is only for interplant)
OUn - Ordering unit
Agreement - SA number
Item - 1
I hope this will resolve your issue. Thanking you -
I am getting error while doing MFBF for semifinisg good
Hi,
i am getting error while doing MFBF for semifinisg good
Existing standard cost estimate cannot be used
Message no. RM175
Diagnosis
This error appears under the following circumstances:
The existing standard cost estimate cannot be used for backflushing activities as the repetitive manufacturing profile was not maintained correctly when the standard cost estimate was carried out.
The standard cost estimate must come from product costing. Other cost estimates (such as base object controlling) are not possible.
Procedure
The repetitive manufacturing profile assigned to the material at the time of the planned cost estimate must be a profile for repetitive manufacturing with product cost collector.
Use product costing to create the standard cost estimate.I had already check REM profile repetitive mfg profile final backflush w. activities.
this particular material is semifinish material attached in BOM of finish material.
backflush of finish good is possible but now new requirement is to do production booking for the semifinish material.
i had assign production version , done routing and maintain REM profile,
created material cost with quantity structure ck11n then run the costing in ck40n.
still getting the error what else is to done to able to book this thru MFBF.
Maybe you are looking for
-
Hi! With these two perplexing pieces of code, I should be able to show a red "Welcome to Java" string. But it doesn't render when I open the HTML file. I don't know why, I seem to be passing the parameters properly. Applet: <html> <head>
-
WHat do i do now? It will not update no matter what i do and it is an Ipad 2 purchased only a few weeks ago
-
Hi , In TCODE ME23N -> document overview : there are 2 options : 1.Purchase Orders on hold 2.My purchase Orders on hold BUt both the options fetches me the same data,i.e. even if i select the first option "Purchase Orders on hold"
-
Missing Spaces and Time Machine dock icons (Tiger to Snow Leopard upgrade)
I noticed on my MacBook (Leopard to Snow Leopard upgrade) that it has icons for Spaces and Time Machine in the dock to the left of the divider. These are missing from the dock on my iMac that I upgraded from Tiger to Snow Leopard. They are both Syste
-
MacBook Pro 15", performance, Aperture 1.1.x vs 1.5
Hello all, thought I'd post some info about Aperture 1.5 on a MBP 15". I have seen many posts and ramblings about how the MBP 15" is somehow slow when using Aperture, especially compared to the 17" or other Intel machines. My biggest gripes with Aper