Problem during Rate Routing Upload using BDC.
Dear Sir/Madam,
I am uploading Rate Routings using a BDC program which is working perfectly but having a single problem.
In the initial screen of the transaction CA21(Create Rate Routing), I need to enter only the Material Number and its Plant and all the other fields should be left blank.
But, here the group number field is automatically getting filled with the previous value and it is incrementing the group counter number.
I want the system to allocate different group number for each Routing. I want the group number to be unique.
Thanks,
Ranjan.
Dear Ranjan,
While doing recording CA21. you would pass only the material number and plant (i mean you did recording of CA21 based on material number as well as plant not for routing number (group counter))
Routing number (group counter) dynamic (In your case Internal number rage has assigned).
So the Problem is:
1st record of you internal table update smoothly because you program will pass only material and plant
group counter (RC271-PLNNR) field is blank, after update 1st record system will regenerates the
group counter number.
ones the system updates the data it will generates Group counter number and assign to filed :(RC271-PLNNR).
after saving the record system will go loop statement of you program. again program will call the call transaction statement with 2nd record of the internal table. call transaction statement pass the material number and plant field at ca21. but group counter number automatically poulated in the screen field because that time system can't be refresh the initial screen of CA21,
so system will shows previous updated screen ( 1st routing record will show)
Remove your bdc perform and add this code in your BDC perform.
* 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 <> SPACE.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
* Clearing the Group Counter *
IF FVAL = SPACE.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
above code: 1st time of call transaction FVAL = space means ( group counter field is blank)
2nd and rest of the time FVAL <> space. means (previous record group number exists for new call transaction ) so system will be by pass with new record.
Check with debugging mode. you will come to whats going in you code.
Even i have go same problem while uploading routing data. i have find out solution after doing my RND.
Regards,
Akshath
Similar Messages
-
How many numbers of records can be uploaded using BDC at a time
dear friends,
i want to know that how many numbers of records can be uploaded using BDC at a time from legacy system(database).no resticsation.
large value of data upload. -
Conversion problem in condition records upload program (BDC tcode: XK15)
Hello everyone,
I have downloaded few records from table A017 using key KUMNH (cond no), by the std program RVBTCI01 , i used three structures BRG00, BKOND1, BKOND2 and BKOND3 to download the records.
into a file (.txt) on the server.
now i uploaded the same file using the standard prg RV14BTCI (after recording the the transaction XK15 using BDC).
the amount field in bkond structure BKOND2-KEBTR is giving the conversion error while uploading ,
it is giving ERROR when the session is processed in sm35
it is not accepting the decimal places while uploading the amount field.
when amount field is made integer its working fine..
this is happening with fields MXWRT and GKWRT too .... (infact in all places where the decimals are used)
any pointers to solve this ???hi avinash,
the data elt used for KONP-KBETR in table is
KBETR_KOND ( which is of type CURR , length 11 and 2 decimal)
the data elt used for BKOND2-KBETR in structure is
BKBETR ( which is of type CHAR , length 15 and 0 decimal)
so dat i can download len(11)point(1)decimal(2) total 15 digits in the structure of 15 char
now the problem comes when i am uploading the same back into the table KONP-KEBTR
which is of type CURR as mentioned above
plz help to solve dis -
Reg Vendor master upload using BDC Call Transaction Method
Hi All,
Thanks in advance.
I am uploading vendor master data using bdc call transaction method for XK01. In that i am getting an error message that the fields " smtp_addr" ( for email) and "time_zone" (for time zone) doesnot exist on the screen '0110' ( this is the second screen) . the field timezone will be displayed on the screen only when we go for communications button and select the URL field .
Do anybody have the solution for this problem. if possible can you give me the code for that screen.Create a recording via SM35 (menu go to=>recording), this will generate automatically the code for filling your bdcdata-table...
-
While uploading bom using bdc method how to upload item details into subscreen table.explain table control in bdc
hi,
When you try to create, you would find a pushbutton 'INSERT NEW LINES' or something simialr to enter your data in the next line. Say you're entering the Material inthe first row, its field position would be MARA-MATNR(01). Now when you click the Insert Pushbitton the cursor always is at positon 2. so you have to loop the remaining data to enter in MARA-MATNR(02). Yougenereally set a counter and pass that counter value (in this case the counter value is 2 always)
The other case when you don't have a push button to Insert. Enter all the rows and then do a Page down. Now your cursor would sit back at position 2 again. Say if there are 20 rows in the first screen. You would keep incrementing the counter and then when it is 21 you do a pagedown and then reset the counter to 2. You loop the pagedown and in it you loop the counter.
I have attached a BDC where I use the second case (no push button). Do a recording and then you would know all the answers by yourself.
*& REPORT ZPP0122 *
*& Module : PP |
*& Application : The program loads the Material Assignment of Routings |
*& |
REPORT zpp0122 NO STANDARD PAGE HEADING
MESSAGE-ID z0
LINE-SIZE 132
LINE-COUNT 65(2).
Internal Tables *
*Internal table for the Routing fields.
DATA: BEGIN OF i_rout OCCURS 0,
plnnr(8),
plnal(2),
matnr(18),
werks(4),
END OF i_rout.
DATA:
g_my_rec_in LIKE i_rout.
Declare internal table for Call Transaction and BDC Session
DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
Global Variables *
DATA: g_counter(2) TYPE n,
g_field_name(18) TYPE c,
zc_yes TYPE syftype VALUE 'X'.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETERS: p_fname1 TYPE localfile .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
PARAMETERS: p_rloc1 AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZROUTING'.
SELECTION-SCREEN END OF BLOCK c.
SELECTION-SCREEN END OF BLOCK b.
SELECTION-SCREEN END OF BLOCK a.
**WRITE the report header
TOP-OF-PAGE.
INCLUDE zheading.
Start of selection *
START-OF-SELECTION.
Load Input file
PERFORM f_load_input_file.
Create BDC records.
PERFORM create_bdc_records .
*& Form Create_BDC_records
perform the BDC for the records in the internal table
FORM create_bdc_records .
IF NOT i_rout[] IS INITIAL.
Open BDC session
PERFORM open_bdc_session.
LOOP AT i_rout.
g_my_rec_in = i_rout.
AT NEW plnnr.
CLEAR i_bdc_table[].
PERFORM insert_screen_header.
ENDAT.
CONCATENATE 'MAPL-PLNAL(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_rout-plnal.
CONCATENATE 'MAPL-MATNR(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_rout-matnr.
CONCATENATE 'MAPL-WERKS(' g_counter ')' INTO g_field_name.
PERFORM bdc_field USING g_field_name i_rout-werks.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
g_counter = g_counter + 1.
Page Down for further entries
IF g_counter = 19.
PERFORM bdc_field USING 'BDC_OKCODE' '=P+'.
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
g_counter = 2.
ENDIF.
AT END OF plnnr.
PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'.
PERFORM bdc_dynpro USING 'SAPLCPDI' '1200'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.
PERFORM insert_bdc_new.
ENDAT.
ENDLOOP.
CLEAR i_rout[].
PERFORM close_bdc_session.
Release the BDC sessions created
PERFORM release_bdc.
ENDIF.
ENDFORM. " open_group
*& Form bdc_dynpro_start
Call the screen for the input of fields
-->P_G_PROGRAM_1
-->P_G_SCREEN
FORM bdc_dynpro USING p_g_program_1
p_g_screen.
CLEAR i_bdc_table.
i_bdc_table-program = p_g_program_1.
i_bdc_table-dynpro = p_g_screen.
i_bdc_table-dynbegin = 'X'.
APPEND i_bdc_table.
ENDFORM. " bdc_dynpro_start
*& Form bdc_field
Insert field *
FORM bdc_field USING f_name f_value.
IF f_value <> space.
CLEAR i_bdc_table.
i_bdc_table-fnam = f_name.
i_bdc_table-fval = f_value.
APPEND i_bdc_table.
ENDIF.
ENDFORM. "bdc_insert_field
*& Form open_bdc_session
Create the BDC session
FORM open_bdc_session .
Open BDC session and creat and update condition records
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
DEST = FILLER8
group = p_group
HOLDDATE = FILLER8
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.
ENDFORM. " create_bdc_session
*& Form insert_screen_header
Header Data inserted
FORM insert_screen_header .
g_counter = 1.
First screen
PERFORM bdc_dynpro USING 'SAPLCPDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC271-PLNNR'.
PERFORM bdc_field USING 'BDC_OKCODE' '=ALUE'.
PERFORM bdc_field USING 'RC271-PLNNR' g_my_rec_in-plnnr.
PERFORM bdc_field USING 'RC27M-MATNR' ' '.
PERFORM bdc_field USING 'RC27M-WERKS' ' '.
PERFORM bdc_field USING 'RC271-PLNAL' ' '.
*next screen
PERFORM bdc_dynpro USING 'SAPLCPDI' '1200'.
PERFORM bdc_field USING 'BDC_OKCODE' '=MTUE'.
*next screen
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
ENDFORM. " insert_screen_header
*& Form insert_bdc
Insert the BDC for the transaction
FORM insert_bdc_new .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'CA02'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
dynprotab = i_bdc_table
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.
CLEAR i_bdc_table[].
ENDFORM. " insert_bdc
*& Form close_bdc_session
Close the session
FORM close_bdc_session .
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.
ENDFORM. " close_bdc_session
*& Form f_load_input_file
Load the data file
FORM f_load_input_file.
The data file is from Presentation server
IF p_rloc1 = zc_yes.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_fname1
filetype = 'DAT'
TABLES
data_tab = i_rout
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
ENDIF.
ENDFORM. " f_load_input_file
*& Form release_bdc
Release BDC session
FORM release_bdc.
SUBMIT rsbdcsub WITH mappe EQ p_group
WITH von EQ sy-datum
WITH bis EQ sy-datum
WITH fehler EQ '.'
EXPORTING LIST TO MEMORY
AND RETURN.
ENDFORM.
Regards
Sudheer -
Hi regarding material master and vendor master (mm01,xk01) upload using BDC
hi can any one tell me how to upload material maste and vendor master using BDC.
will the views capture by shdb when i use recording.Hey i suggest you to go to LSMW direct input program method. That's the best option.
Material Master:
Object 0020 Material master
Method 0000
Program Name RMDATIND
Program Type D Direct Input
Vendor Master:
Object 0040 Vendor master
Method 0001 Standard
Program Name RFBIKR00
Program Type B Batch Input -
Posting More than 900 lines not allowing uploading using BDC for FB60
Hi,
When i am upload vendor invoices with More than 900 lineitems using BDC program it is giving the fallowing error .
1 You are entering line item 900 , a maximum of 999 line items are defined
As per i know it will allow 999 line items for one document posting . But i am getting error when i am posting more than 900.
If any body know the solution please share with me .
Thanks
SriHariI vaguely remember that SAP reserves lines for automatically created items e.g. for taxes, you might have run into that limit. Check in that direction with a functional expert, the limit might be configurable.
Thomas
Edit: now I did what you could have done and checked the where-used-list for message F5 138, the 900 is hard coded, and it is just a warning, seemingly to alert the user of the brick wall he is about to hit very soon. -
Data upload using BDC/LSMW (SAP-ABAP)
Hi Friends,
Is there any option available to delete no.of records from sap-database which are uploaded(Only transactional data) in test or production system by using BDCs and Lsmw ?
Pls treat it as urgent.
I 'll reward for best solution.
Thx in Adv.
BapiHi,
Thq for ur response.
I am explaining u in more details:
Suppose I uploaded *G/L Account balance(it is having thousands of records) * using existing Z_prog...successfully to quality system.
Afterwards I came to know some wrong data has been uploaded along with .Now I want to delete those records from quality system which is got corrupted.
Is the any tool available to do this ?
Pls treat it as urgent .
Thx and Regds,
Bapi -
Hi Friends,
While creating the task list user defined field is in input mode, but when i do data uploading thru BDC program it's always coming in display mode, so system is not taking the data input for that field.
Field Name : User Defined Field ( PLPOD-USR00 )
Kindly suggest the solution.
Regards
PankajHi ~
1. Are you trying bothn online and BDC with the same user id? Please check that if there is any authorization issue.
2. Some times in BDC the screen flow is different. Check whether there is any difference in the sequence of the screens in between the BDC and online for creating task list. -
Problem copying/extending materials (MM01) using BDC
Hi,
I am developing a program that will be used to copy/extend material from one plant to another plant by using BDC. When i did it manually in MM01, i selected 8 views (Purchasing, MRP1, MRP2, MRP3, MRP4, General Plant Data/Storage 1, General Plant Data/Storage 2, Accounting 1 and Accounting 2) and marked the "Create views selected" checkbox. Then, the system prompted me for the plant and storage location information (copy from & copy to). After that, the Purchasing view appears and i would just need to click the "SAVE" button and the new material was created.
When i ran the BDC program (by selecting the "Call Transaction - Show all screens" option), i found that i had to run it four times to have the material created. Basically, i found that it went through four views which were purchasing, MRP, General Plant Data / Storage and Accouting view.
I was wondering why it didn't create the selected views for me although i had recorded the "Mark the 'create views selected' option" in the BDC?
Thanks much in advance.Why choose BDC for MM01 ?
You've the BAPI 'BAPI_MATERIAL_SAVEDATA' at your service. Easy to use & simple to maintain.
Unless you give me specifics i am not convinced about the BDC approach.
BR,
Suhas -
Problem with OPERATION TEXT(LTXA1) uploading using BDC For C202 Transaction
Hi Experts,
Im presently doing a BDC for the trransaction C202 (Change Master Recipe),my task was to upload the 'OPERATION TEXT' field PLPOD-LTXA1 which is actually Long text to an existing master recipe from a flat file during updation of the 'OPERATION TEXT the number of lines i was able to were 34 which we number lines on the displayed page and while updating the 35th line using the concept of bdc table control it is failing to insert the update text.
I used all the ok codes but failed to update more than 34 lines.So,can someone tell me how to update the longtext beyound it.
This is the Screenshot of my problem:
[BDC_C202_error|http://www.freeimagehosting.net/uploads/79af6bac49.jpg]
Thanx in advance.Hi,
There is a better way of doing the long text upload in SAP. In your BDC, if I change the text editor, the BDC will not work.
Hence ,
Use function module " Save_Text" to update long texts in SAP.
Please check its FM documentation or perform a search for this FM in SDN for more clarity.
Write back in case you face further issues.
Regards,
Rijuraj
Edited by: Rijuraj Raju on Sep 10, 2010 3:05 PM -
Vendor upload using bdc(Tax jurisdiction issue)
Hi, im trying to upload vendor masters using a bdc. For US vendors i call the function
DETERMINE_TXJCD_EXTERNALLY to calculate the tax jur code.
It works fine when there is a single code as an output.
However some times it gives multiple outputs in the form of a table and i have to select 1 in order for the program to proceed ahead.
Since this is going to be running in the background it's not possible to select 1 value manually.
How do i proceed?Hi,
Must Be this TAX juridiction code is is dealing with RFC's. You can not handle this kind of Pop-up's in BDC.( i guess you are getting popup to select juridiction code). Write some logic program( By using the same Function modules which are being used for this caluculation. You can find these FM's in Debugging) which sends individual RFC call and populate it to uploading field.
Regards,
Krishna. -
"No valid material component found" when Routing upload using LSMW RCPTRA02
I want to upload routings through LSMW RCPTRA02 incluing routing headers, sequences, operations and component allocations. But systems appears error CM 101 "No valid material component found" . Does anybody occurs the same error before?
The materials truly exists in BOM component.
Sincerely thanks,
AlinaHi,
What is the status of the BOM? There should not be any problem if the material BOM exists.
Regards,
Krishnendu. -
Error Message during Schedule Agreements Uploading using IDocs
Dear Experts,
Could you help me to solve an error I receive, when trying to upload Scheduling Agreement (ME31L).
As was advised [here|Re: LSMW to create and change Sched.Agreements and Contracts in Purchasing;, I've used
Message type PURSAG_CREATE
Basistype PURSAG_CREATE01
And received an error:
Enter rate /EUR rate type M for 26.09.2008 in the system settings
error
Why does it happens, because there aren't any Exchange rate in the transaction? How could I resolve this issue?
I've mapped for header:
Vendor Account Number
Purchasing Document Type
Purchasing Organization
Purchasing Group
Item Number Interval
Item Number Interval for Subitems
Start of Validity Period
End of Validity Period
ISO code for language key
I've mapped for items:
Item Number of Purchasing Document
Material Number
Short Text
Target Quantity
Material Group
Plant
Storage Location
Overdelivery Tolerance Limit
Stock Type
Indicator: Unlimited Overdelivery Allowed
Planned Delivery Time in Days
Goods Receipt Processing Time in Days
Thanks for Help in AdvanceHello again,
With help of colleague from Technical Team I've managed to solve this issue.
Enter rate /EUR rate type M for 26.09.2008 in the system settings error
Solution for this Error is to map values for "Currency Key" and "Exchange Rate" fields.
After that another error was raised:
No instance of object type PurchSchedAgreement has been created. External reference: # 2
Obviously, the initial issue was different from exchange rate error. So the error was raised, because not all mandatory fields were mapped. As I was trying to upload "Stock transport Scheduling agreement", it's necessary to assign value to "Supplying (Issuing) Plant in Stock Transport Order" field.
So, the working mapping for me looks like:
Header:
Purchasing Document Type
Purchasing Organization
Purchasing Group
Item Number Interval
Item Number Interval for Subitems
Start of Validity Period
End of Validity Period
ISO code for language key
Supplying (Issuing) Plant in Stock Transport Order
Items:
Item Number of Purchasing Document
Material Number
Target Quantity
Material Group
Plant
Storage Location
Overdelivery Tolerance Limit
Stock Type
Indicator: Unlimited Overdelivery Allowed
Item Category in Purchasing Document
Planned Delivery Time in Days
Goods Receipt Processing Time in Days -
Problem in material master upload using LSMW
Dear All
I am trying to upload material master using LSMW (batch input recording).
I am facing problem while doing 14 step (Run Batch Input Session). When i'm running the batch input session, on the Create Material (Initial Screen), system picks values for material code, industry sector & material type but gives error message "select at least one view". system is not allowing me select the views which i selected while recording. system allows me to select all the view which i don't want.
why system is asking me to select the views and also how to select the required view?
thanks
manoj guptathanks charu
do i need to do complete LSMW steps fpr all the view separately? if i do LSMW for basic view1, for other view do i need to go for change TCode or create T Code?
thanks
manoj gupta
Maybe you are looking for
-
Problem of uploading data in Data Warehouse
I am using Oracle9i Warehouse Builder on Windows 2000 and i just started working in it. I am facing problem in uploading data from source schema to Target schema I) Created Source Moulde -- Link to One schema from where i have get data 2) C
-
How do you convert to Adobe Camera Raw in batch?
I shoot photos with my Olympus e500 in raw. Then I bring them into the organizer. Then I laboriously load the pictures one by one into the ACR converter to convert my olympus raw files into compressed adobe dng files. Is there a way of doing this in
-
My apps are in $ not £ how do i sort
Just got i phone for 1st time and apps kids games are in $ not £ , what do I need to do?
-
As a user, firefox will open for me. As a user, firefox will not open for my husband. Yesterday McAfee had to remotely turn the McAfee firewall back on. I don't know if during this process it somehow affected firefox.
-
I'm not familiar with SMTP standards, but is there any SMTP mandated bounce/error code I can use in my application? I'm working on SMTP classification at the moment. Thanks.