Program RM06IBI0
Hi All,
I am using standard program RM06IBI0 to create purchase info records but I not clear with the use of the same.
Could you please tell me how to use this program. what is the structure required to pass data to this standard program.
does this program creates a batch input session or directly create the purchase info records.
thanks in advance.
Best Regards,
Sugeet.
BDC program for Purchase Info Records
*& REPORT ZMM0069 *
*& Module : MM |
*& Application : The program loads the Purchasing Inforecords |
*& |
*| Modification Log |
*| -
|
*| Programmer Date CC# Chg.Ref Description of
*| Change |
*| -
|
*| Rajesh Singh 23-AUG-2005 Initial
*| development. |
REPORT zmm0069 NO STANDARD PAGE HEADING
MESSAGE-ID z0
LINE-SIZE 132
LINE-COUNT 65(2).
Internal Tables *
*Internal table for the purchasing info records fields.
DATA: BEGIN OF i_inforecord OCCURS 0,
matnr(18),
lifnr(10),
uom(3),
ekgrp(3),
planned_time(3),
under_tol(3),
over_tol(3),
qty(10),
price_cat(5),
inco(3),
designation(28),
netpr(13),
scale_qty1(10),
scale_pr1(13),
scale_qty2(10),
scale_pr2(13),
scale_qty3(13),
scale_pr3(10),
scale_qty4(13),
scale_pr4(10),
scale_qty5(13),
scale_pr5(10),
scale_qty6(13),
scale_pr6(10),
scale_qty7(13),
scale_pr7(10),
scale_qty8(13),
scale_pr8(10),
scale_qty9(13),
scale_pr9(10),
scale_qty10(13),
scale_pr10(10),
END OF i_inforecord.
Internal table for Old and New Vendor number
DATA : BEGIN OF i_lfb1 OCCURS 1,
lifnr(10),
altkn(10),
END OF i_lfb1.
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-003.
PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZPURCHINFO'.
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_inforecord[] IS INITIAL.
Open BDC session
PERFORM open_bdc_session.
SELECT lifnr altkn FROM lfb1 INTO TABLE i_lfb1
FOR ALL ENTRIES IN i_inforecord
WHERE altkn = i_inforecord-lifnr.
Sorting the Internal table for better performance
SORT i_lfb1 BY altkn.
LOOP AT i_inforecord.
***Mapping Old Vendor number to the new Vendor number
READ TABLE i_lfb1 WITH KEY altkn = i_inforecord-lifnr BINARY
SEARCH.
IF sy-subrc EQ 0.
i_inforecord-lifnr = i_lfb1-lifnr.
ENDIF.
CLEAR i_bdc_table[].
PERFORM insert_screen_header.
call transaction 'ME11' using i_bdc_table
mode 'A'.
CLEAR i_bdc_table.
ENDLOOP.
CLEAR i_inforecord[].
PERFORM close_bdc_session.
Release the BDC sessions created
PERFORM release_bdc.
ENDIF.
ENDFORM. " open_group
*& Form bdc_dynpro_start
Start the screen for the transfer of fields
FORM bdc_dynpro_start 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_start
*& Form bdc_insert_field
Insert field *
FORM bdc_insert_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
Open a BDC session
FORM open_bdc_session .
Open BDC session and create and update 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
Screen flow for the transfer of fields
FORM insert_screen_header .
First Screen 100
PERFORM bdc_dynpro_start USING 'SAPMM06I' '0100'.
PERFORM bdc_insert_field USING:'BDC_CURSOR' 'EINA-LIFNR',
'BDC_OKCODE' '/00',
'EINA-LIFNR' i_inforecord-lifnr,
'EINA-MATNR' i_inforecord-matnr,
'EINE-EKORG' '1000',
'RM06I-NORMB' zc_yes.
Next Screen 101
PERFORM bdc_dynpro_start USING 'SAPMM06I' '0101'.
PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'EINA-MAHN1',
'BDC_OKCODE' '/00',
'EINA-MEINS' i_inforecord-uom.
*Next Screen 102
PERFORM bdc_dynpro_start USING 'SAPMM06I' '0102'.
PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'EINE-INCO2',
'EINE-APLFZ' i_inforecord-planned_time,
'EINE-EKGRP' i_inforecord-ekgrp,
'EINE-NORBM' i_inforecord-qty.
PERFORM bdc_insert USING 'EINE-UEBTK' ' '.
PERFORM bdc_insert_field USING:'EINE-PEINH' i_inforecord-scale_qty1,
'EINE-BPRME' i_inforecord-uom,
'EINE-UNTTO' '5',
'EINE-UEBTO' '25',
'EINE-MEPRF' i_inforecord-price_cat,
'EINE-NETPR' i_inforecord-netpr,
'EINE-INCO1' i_inforecord-inco,
'EINE-INCO2' i_inforecord-designation.
Checking for Scale quantities
IF i_inforecord-scale_qty2 = space.
PERFORM bdc_insert_field USING 'BDC_OKCODE' '=BU'.
PERFORM insert_bdc_new.
ELSE.
PERFORM bdc_insert_field USING 'BDC_OKCODE' '=KO'.
Next Screen 201
PERFORM bdc_dynpro_start USING 'SAPMV13A' '0201'.
PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'RV13A-DATAB',
'BDC_OKCODE' '=PSTF'.
Next Screen 201
PERFORM bdc_dynpro_start USING 'SAPMV13A' '0201'.
PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'KONP-KSCHL(01)',
'BDC_OKCODE' '=PSTF',
'RV130-SELKZ(01)' zc_yes.
LAST SCREEN 303
PERFORM bdc_dynpro_start USING 'SAPMV13A' '0303'.
PERFORM bdc_insert_field USING : 'BDC_CURSOR' 'KONM-KBETR(03)',
'BDC_OKCODE' '=SICH'.
Counter to Loop the Item level entry
g_counter = 0.
PERFORM scale_entry USING i_inforecord-scale_qty2
i_inforecord-scale_pr2.
PERFORM scale_entry USING i_inforecord-scale_qty3
i_inforecord-scale_pr3.
PERFORM scale_entry USING i_inforecord-scale_qty4
i_inforecord-scale_pr4.
PERFORM scale_entry USING i_inforecord-scale_qty5
i_inforecord-scale_pr5.
PERFORM scale_entry USING i_inforecord-scale_qty6
i_inforecord-scale_pr6.
PERFORM scale_entry USING i_inforecord-scale_qty7
i_inforecord-scale_pr7.
PERFORM scale_entry USING i_inforecord-scale_qty8
i_inforecord-scale_pr8.
PERFORM scale_entry USING i_inforecord-scale_qty9
i_inforecord-scale_pr9.
PERFORM scale_entry USING i_inforecord-scale_qty10
i_inforecord-scale_pr10.
PERFORM insert_bdc_new.
ENDIF.
ENDFORM. " insert_screen_header
*& Form insert_bdc
Insert BDC
FORM insert_bdc_new .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'ME11'
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 BDC 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
Upload the file
FORM f_load_input_file.
Check always Local file for upload
IF p_rloc1 = zc_yes.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_fname1
filetype = 'DAT'
TABLES
data_tab = i_inforecord
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.
STOP.
ENDIF.
ENDIF.
ENDFORM. " f_load_input_file
*& Form release_bdc
Release the 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. " release_bdc
*& Form scale_entry
Populate the Scale quantities
-->P_SCALE_QTY
-->P_SCALE_PRICE
FORM scale_entry USING p_scale_qty
p_scale_price.
Increment the Counter
g_counter = g_counter + 1.
IF p_scale_qty <> space.
CONCATENATE 'KONM-KSTBM(' g_counter ')' INTO g_field_name.
PERFORM bdc_insert_field USING g_field_name p_scale_qty.
CONCATENATE 'KONM-KBETR(' g_counter ')' INTO g_field_name.
PERFORM bdc_insert_field USING g_field_name p_scale_price.
ENDIF.
ENDFORM.
*& Form bdc_insert
To uncheck the Unlimited (UEBTK)
FORM bdc_insert USING f_name f_value.
CLEAR i_bdc_table.
i_bdc_table-fnam = f_name.
i_bdc_table-fval = f_value.
APPEND i_bdc_table.
ENDFORM. " bdc_insert
Similar Messages
-
Hi all.
I am writing a full MM upload program and amongst other things I have to upload PIR's. I understand there is no FM or BAPI to use which would make things nice and easy. For performance issues I don't really wish to use a BDC either.
I have read about program RM06IBI0 that is used for LSMWs. Can someone please advise how I would call this from a standard ABAP. I understand that I would have to create a header and line item table to be uploaded via RM06IBI0.
If anyone has used this program within an upload process other than LSMW I would be interested to hear from you.
Cheers.I need the answer too the same problem can anybody help !!
-
Problem with Purchase info rec's(RM06IBI0)
Hi experts,
I have a querry, we are uploading PIR data through the program RM06IBI0, here if we enter any header condition type(KNTYP = H) (Like PB00) as the first record no problem is there.But, If we are not sending this Header condition type then, We are getting an error.
Is there any rule while updating PIR data throgh the program RM06IBI0, we have to enter first PB00 ?
Can any body explain this briefly.
Thanks in advance.
Regards,
Sandya.Hi,
You are right. You need to give PB00 - Base price as the first condition. If you hace a different condition type in your datafile for upload check with your MM consultant who can help you in customizing.
And another point with respect to conditions in prg: RM06IBI0 is that if you have multiple conditions with scales ( value / quantity ), this would not work & in this case you need to load conditions separately by IDOC: COND_A / COND_A02
Hope this helps.
Best Regards, Murugesh -
Problem in uploading inforecords through "RM06IBI0"
Hi experts,
I am facing the problem when i amuploading the purchase info record data through the program RM06IBI0 for some records only(randomly).
This program is unable to upload the condition records data in the screen SAPMV13A-0201.It is giving the error filed konp-kmein(1) does not exist in the screen SAPMM06I 0102.
Can any body suggest me what is the cause? as an urgent basis.
Thanks and regards,
Vamsi.Function to Open job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = y_k_jobname
IMPORTING
jobcount = y_v_jobcount
EXCEPTIONS
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
IF sy-subrc NE 0.
MESSAGE text-016 TYPE y_k_s.
LEAVE LIST-PROCESSING.
ENDIF.
Insert program RM06IBI0
SUBMIT rm06ibi0 USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE y_v_rspar_tab
AND RETURN
VIA JOB y_k_jobname
NUMBER y_v_jobcount.
Insert program RSBDCSUB
SUBMIT rsbdcsub USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE y_v_rspar_tab1
AND RETURN
VIA JOB y_k_jobname
NUMBER y_v_jobcount.
MOVE: y_k_parm4 TO y_v_rspar_line2-selname,
y_k_p TO y_v_rspar_line2-kind,
y_k_i TO y_v_rspar_line2-sign ,
y_k_eq TO y_v_rspar_line2-option,
y_p_grp TO y_v_rspar_line2-low.
APPEND y_v_rspar_line2 TO y_v_rspar_tab2.
CLEAR y_v_rspar_line2.
MOVE: y_k_parm7 TO y_v_rspar_line2-selname,
y_k_p TO y_v_rspar_line2-kind,
y_k_i TO y_v_rspar_line2-sign ,
y_k_eq TO y_v_rspar_line2-option,
y_p_bfil TO y_v_rspar_line2-low.
APPEND y_v_rspar_line2 TO y_v_rspar_tab2.
CLEAR y_v_rspar_line2.
MOVE: y_k_parm11 TO y_v_rspar_line2-selname,
y_k_p TO y_v_rspar_line2-kind,
y_k_i TO y_v_rspar_line2-sign ,
y_k_eq TO y_v_rspar_line2-option,
y_v_fill TO y_v_rspar_line2-low.
APPEND y_v_rspar_line2 TO y_v_rspar_tab2.
MOVE: y_k_parm12 TO y_v_rspar_line2-selname,
y_k_p TO y_v_rspar_line2-kind,
y_k_i TO y_v_rspar_line2-sign ,
y_k_eq TO y_v_rspar_line2-option,
y_v_count1 TO y_v_rspar_line2-low.
APPEND y_v_rspar_line2 TO y_v_rspar_tab2.
IF sy-batch = 'X'.
Insert program RM06IBI0
SUBMIT ypuuprr0200 USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE y_v_rspar_tab2
AND RETURN
VIA JOB y_k_jobname
NUMBER y_v_jobcount.
ENDIF.
IF sy-subrc EQ y_k_zero.
MOVE: sy-datum TO y_t_starttime-sdlstrtdt,
sy-uzeit TO y_t_starttime-sdlstrttm,
y_k_x TO y_v_starttim.
Close job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = y_v_jobcount
jobname = y_k_jobname
strtimmed = y_v_starttim
targetsystem = y_v_host
EXCEPTIONS
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
OTHERS = 99.
ENDIF. "if sy-subrc eq 0
*if job not created properly delete the job
IF sy-subrc NE y_k_zero.
CALL FUNCTION 'BP_JOB_DELETE'
EXPORTING
jobcount = y_v_jobcount
jobname = y_k_jobname
EXCEPTIONS
cant_delete_event_entry = 1
cant_delete_job = 2
cant_delete_joblog = 3
cant_delete_steps = 4
cant_delete_time_entry = 5
cant_derelease_successor = 6
cant_enq_predecessor = 7
cant_enq_successor = 8
cant_enq_tbtco_entry = 9
cant_update_predecessor = 10
cant_update_successor = 11
commit_failed = 12
jobcount_missing = 13
jobname_missing = 14
job_does_not_exist = 15
job_is_already_running = 16
no_delete_authority = 17
OTHERS = 18.
ENDIF. "IF sy-subrc NE 0.
*Check for Foreground execution
IF sy-batch NE y_k_x.
DO.
IF sy-index EQ '10' OR y_v_fill1 > y_v_fill.
EXIT.
ELSE.
WAIT UP TO 3 SECONDS.
ENDIF.
*Fetch data from APQI
SELECT qid groupid qstate
INTO CORRESPONDING FIELDS OF TABLE y_i_apqi1
FROM apqi
WHERE groupid EQ y_p_grp
AND datatyp EQ 'BDC'
AND progid EQ 'RM06IBI0'
AND creator EQ sy-uname
AND credate EQ sy-datum.
DESCRIBE TABLE y_i_apqi1 LINES y_v_fill1.
ENDDO.
*Check new entry in table
IF y_v_fill1 > y_v_fill.
READ TABLE y_i_apqi1 INDEX y_v_fill1 INTO y_wa_apqi1.
IF sy-subrc EQ 0.
APPEND y_wa_apqi1 TO y_i_apqi2.
ENDIF.
ENDIF.
*check if table is empty
IF y_i_apqi2 IS INITIAL.
MESSAGE text-035 TYPE y_k_s.
LEAVE LIST-PROCESSING.
ELSE.
READ TABLE y_i_apqi2 INDEX 1 INTO y_wa_apqi1.
ENDIF.
*check if Session is finished
DO.
IF sy-index EQ '10' OR y_wa_apqi1-qstate EQ 'F' OR
y_wa_apqi1-qstate EQ 'E'.
EXIT.
ELSE.
WAIT UP TO 3 SECONDS.
ENDIF.
*Read table y_i_apqi1 into y_wa_apqi1 index 1.
SELECT qid groupid qstate
INTO CORRESPONDING FIELDS OF TABLE y_i_apqi2
FROM apqi
WHERE qid EQ y_wa_apqi1-qid AND
( qstate EQ 'F' OR qstate EQ 'E').
IF sy-subrc EQ 0.
EXIT.
ENDIF.
ENDDO.
*read table with status finished
READ TABLE y_i_apqi2 INDEX 1 INTO y_wa_apqi1.
IF y_wa_apqi1-qstate NE 'F' AND y_wa_apqi1-qstate NE 'E'.
MESSAGE text-036 TYPE y_k_s.
LEAVE LIST-PROCESSING.
ELSE.
*Use function to read session log
CALL FUNCTION 'YTI_BATCH_INPUT_SESSION_LOGS'
EXPORTING
NAME = y_p_grp
client = sy-mandt
date_from = sy-datum
date_to = sy-datum
qid = y_wa_apqi1-qid
status = y_k_r
TABLES
apqltab = y_i_apqi2
bdclm = y_i_bdclm
EXCEPTIONS
invalid_data = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE s305(00) WITH text-001 text-009 text-010.
ENDIF.
Thanks and regards,
Vamsi. -
RM06IBI0 Batch-Input record info Unicode
help me,
launching the program standards RM06IBI0, I get this error :
Errore run-time CONVT_CODEPAGE
Eccezione CX_SY_CONVERSION_CODEPAGE
Data e ora 17.04.2009 10:55:09
At the conversion of a text from codepage '4110' to codepage '4103':
- a character was found that cannot be displayed in one of the two
codepages;
- or it was detected that this conversion is not supported
The running ABAP program 'RM06IBI0' had to be terminated as the conversion
would have produced incorrect data.
I discovered that
The problem is with the characters: "°" "ò"
which are present in the "txt file"
created for the B.I.
know a quick solution, thanks.
Fiorenzo Di MarcoHello Fiorenzo,
Were you able to resolve this issue?
Could you please share the solution?
Thanks in advance!
Regards!
Emanuel -
Problem uploading data through RM06IBI0
Hi Experts,
We are uploading purchase info records data( ME12) through direct input program RM06IBI0. For some records, we are getting errors.
This program is creating a sesson in SM35, In that sesson errors are:
Cursor field KONP-KSCHL(1) does not exist in the screen
Field KONP-KSCHL(1) does not exist in the screen SAPMM06I 0102
Field KONP-KBETR(1) does not exist in the screen SAPMM06I 0102
1) How to Debug the sesson in SM35. and
2) These errors are coming some(randomly) records. We are unable expect this error will come for this record only.
Thanks in advance,
Sandya.i think in ur flat file u have two values which are related to KSCHL(1), if i am rite
then u should maintain two different fields in the Maintain source fields.
for eg:--
kschl1 kschl2 and for kbetr(1)---> kbetr1 ok
now mapp this source fields to ur target fields with respectively..
u should change ur flat file values also
respective to their values maintain it as HORIZONTALLY.
just ping if u have any doudts,
Thanks -
RM06IBI0 Create Inforcords with two or more P000
Hi everybody
I want to create or modify an info record with program RM06IBI0.
The problem is that I must load two gross price conditions
(P000) with a diferent validity for every condition in the same info record.
How Can I do it at the same time, in the same transaction ME11 or ME12?
thanks in advanceIf you read the documentation of this program, you will find the following text.
<i>The following records only occur if conditions are to be maintained:
For each conditions record (condition type), a record (BKONP, record type 2, table name KONP).
For each line of a quantity scale, a record (BKONM, record type 2, table name KONM).
For each line of a value scale, a record (BKONW, record type 2, table name KONW).</i>
That is what you may need to do. -
CREATION OF PURCHASE INFO RECORDS
Hi All ,
Can anybody tell me how to use standard program RM06IBI0 for creation of purchase info record.
Thanks in advance,
Best Regards,
Sugeet.HI
I think it will be easy for you to handle it through an EXIT where you check a particular role or field entry for allowing a user to proceed further in creation of Info Record
Regards
Virender Singh -
Conditions in purchase info records
I need to migrate purchase info records including conditions in LSMW in one step via IDoc or BAPI.
Message type INFREC does not seem to support conditions. I tried to migrate in two steps with INFREC and afterwards COND_A, but I get the error that the condition table (014) is not supported.
Can anybody help ?
Kind regards
AlexHello ,
you can also use standard program RM06IBI0 if allowed for you.
David -
Purchase Info Record Texts Upload
Hello all,
I am using the standard upload program RM06IBI0 for data migration of PIRs. I have a seperate file that has PO texts.
When I upload the texts I use the structure BRM06I --> BLINES to transport the text.
However, there seems to be no way of forcing the text to go into the right PIR text. I only have PO texts to upload but no matter what data I place in the BRM06I structure the LSMW always places the text into the Info Record Note text.
Can anyone help?Hi
I have encountered the same problem with material BOM creation.
The reason you get this message is probably because you didn't define correctly the identification field in the source structures.
In step 'Maintain source fields' you should define the first field of every structure as identification field by creating char field of length 1. Then from the tree view of source fields, double click this field (in change mode) and give appropriate value in field 'Identifying Field Content', meaning 1 for header structure, 2 for items structure etc.
This should fix the problem.
Best regards -
I am using standard batch input LSMW for creating info records with obj 0060 and program RM06IBI0. In the last step while running session I am getting error as 'Field EINE-EVERS. (shipping instructions ) is not an input field.' Does anybody know why? Is this field not there in ME11 transaction?
resolved
-
Determining Source Structure u0096 for LSMW to upload Purchasing Info records?
I am trying to use program RM06IBI0 through LSMW to upload Purchasing Info records. While configuring LSMW, how do I determine the source structure? Can anybody please help me with an example?
Thanks,
Ketanhi dear
first of all record all the fields which you require through shdb including your vendor code and esokz.
now
generate a structure for mapping the fields through table maintainence generator option.you can add any number of fields there.
actully this must include all the fields which are being fetched from the your flat file.
please revert back if u find problem.
reward points if it find useful
regards
amit singla -
Creating info records ME11 LSMW
I am using standard batch input LSMW for creating info records with obj 0060 and program RM06IBI0. In the last step while running session I am getting error as 'Field EINE-EVERS. (shipping instructions ) is not an input field.' Does anybody know why? Is this field not there in ME11 transaction?
resolved
-
Create Purchase info record using LSMW idoc method
Hello Friends,
I am trying to update Purchase Info records using LSMW Standard program RM06IBI0.
But it is not updating the condition price details and scale Quantity.
For that the form suggessted LSMW IDOC method. with : Message Type COND_A / COND_A02.
But i dont know is the info record created earlier to this step or else we can create both using this method
at a time ? Does anybody please suggest.
( Actually Purchase Info record created using transaction ME11 ).
Regards,
Phaneendrayou first create the info record and subsequently you load the conditions.
become familiar with the condition tables and its key first. Check How table A017 and A018 are maintained.
Intresting is the field VAKEY which is actually the link to your info record.
This is a combination of vendor, material, purchasing org, plant , and info record indicator.
data: begin of ZZVARKEYA,
ZLIFNR like LFM1-LIFNR,
ZMATNR like MARc-MATNR,
ZEKORG like LFM1-EKORG,
ZWERKS like MARC-WERKS,
ZINFTYP like EINE-ESOKZ,
end of zzvarkeyA. -
Data migration on purchasing info record
Hi Gurus,
Where can I find some detail information about how to use program RM06IBI0 via LSMW to carry out data migration on purchasing info record?
Thanks in advance for your help!if you know how to use LSMW, then it does not really matter whether you prepare for loading info records or material masters or any other data.
this forum has many many threads that have links to LSMW documentation. Search for it if you need explanation on LSMW.
If you have specific questions to the info record load, then let me know
Maybe you are looking for
-
Problem clearing a move request
Hi, I've got a simple Exchange 2010 setup running along a 2007 insallations. I have 2 DC's both running 2008 but not R2. My issue is, I have moved a couple of users using the local move request. One of them I delete the move request as soon as it had
-
Create dynamic internal table with deep structure;cell coloring dynamic ALV
Hi, My requirement is to do cell colouring for a dynamic ALV. So I am creating a dynamic internal table using the following method. CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = i_fieldcatalog[] IMP
-
Hi, As far as I can tell, WebDynPro and BSP are competing technologies. They both basicly accomplish the same goals although in different ways. So how do I know which technology is best for my company? Should I base it on our internal goals & strateg
-
Hi, i am 11g OCP, cleared 1z0-055 exam (9i to 11g) and planning to give 10g RAC exam 1z0-048. Am i able to get 10g RAC exam credentials after successfully passing the exam or 1z0-040 exam is necesssary for the same?? Edited by: Shreyas Desai on May 7
-
Boot Camp one more partation in windows 7 Professional 64 bit
I installed Marwicks and through Boot Camp Windows 7 Professional 64 bit and After installing windows 7 professional 64 bit I want to create another partation in windows but when i am creating another partation through windows disk management I am ab