Population of custom LIS tables thorugh MFBF transaction
Hello Friends,
I have created a custom LIS tables S728 for Shop floor control (04) and it is updated though REM Backflush (transaction MFBF). But some of the fields are not populated. Can someone help me to understand how this LIS table is populated? I am looking for piece of code where this table is populated.
I see some includes inside main program for MFBF transaction related to LIS structures, but control does not stop there in while debugging MFBF Tran code.
Any direction/suggestion will help.
Thanks.
Sujoy
I added the following code at the beginning of the user exit and was able to prevent the execution of user exit for S031, S032 and S033 during reload of old material documents using OLI1 or OLI2.
DATA: lv_ex_flg TYPE c.
DATA: lfd_string TYPE string VALUE '(SAPLMCB1)XMCINF[]'.
FIELD-SYMBOLS : <fs1> type any,
<fs2> type any,
<fs> TYPE table,
<fs_wa> TYPE any.
IF sy-tcode EQ 'OLI1' OR sy-tcode EQ 'OLI2'.
ASSIGN (lfd_string) TO <fs>.
IF sy-subrc EQ 0.
LOOP AT <fs> ASSIGNING <fs_wa>.
ASSIGN COMPONENT 'LOW' OF STRUCTURE <fs_wa> TO <fs1>.
ASSIGN COMPONENT 'HIGH' OF STRUCTURE <fs_wa> TO <fs2>.
IF <fs1> EQ 'S031' OR
<fs1> EQ 'S032' OR
<fs1> EQ 'S033'.
lv_ex_flg = '1'.
EXIT.
ELSEIF <fs2> EQ 'S031' OR
<fs2> EQ 'S032' OR
<fs2> EQ 'S033'.
lv_ex_flg = '1'.
EXIT.
ELSEIF <fs2> EQ 'S920' OR
<fs1> EQ 'S920'.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
CHECK lv_ex_flg NE '1'.
Similar Messages
-
Updating custom table using call transaction
How to update a custom table using Call Transaction method. How can we use Table control (Module Pool) for this purpose).
Vignesh,
Create a table maintenance transaction for ur custom tables. Check this link for ref...
http://allaboutsap.blogspot.com/2007/04/table-maintenance-in-sap-step-by-step.html
And create a BDC recording and code a program accordingly...
regards,
karthik -
QALS table update while using MFBF transaction
Hi ,
I added new field with Z to QALS table and i want to fill this field when user use MFBF transaction while pushed save button.But i need mat. document number (mblnr) when i find value of new field which i added.I found EXIT_SAPLQPL1_002 exit which i can change value of QALS table but when i enter into this exit mblnr filed is coming empty.I also tried to find a badi and found INSPECTIONLOT_UPDATE badi's CREATE_BEFORE_UPDATE method.Here i have all values of QALS.But when i change value of new field after this method it becomes empty again.Is there any way to fill this field from mfbf transaction using mblnr?Hi Mehul,
You make use of Wait statement within the BAPI. let the system wait for 2 milliseconds.
use wait = 2. then try doing the same. I think your error would be resolved.
Reward points if this helps,
Kiran -
How to create a Custom LIS structure?
Hi,
I want to build a custom LIS like S031.This table is having a date wise data.
I want to SUM them and compress it to monthly data.
Any ideas?
regards
praveenHi Praveeen,
You can use transaction MC21 to create custom info structure by copying from standard info structure S031.
Please ensure you give custom info structure name greater than S500 (i.e S531).
Range from S000 to S500 is belong to SAP.
Then you can use transaction MCSZ to generate a program for transferring data from S031 to S531. Please check the online documentation for step by step processing.
Lastly, you can use transaction MC9C to generate standard report for S531. In this report, you can perform subtotal and total based on the characteristic (key fields) of S531. No need to sum the records.
This is a drill down reporting.
Hope this will help to start with.
Regards,
Ferry Lianto -
Repetitive Component Scrap for MTS scenario using MFBF transaction
Hi,
We are trying to replicate the functionality of posting a backflush document to process Repetitive material component Scrap for MTS scenario with BOM explosion using MFBF transaction into a custom RF program.
We tried to use 'BAPI_REPMANCONF1_CREATE_MTS' to backflush the Scrap for the above scenario. But it did not help. And no other BAPI's exist. BDC'ing the transaction doesn't help as it contains Table Controls and lot of subscreens an dit is highly volatile for a RF screen.
In view of above restrictions, we are not able to find a solution of how to implement the above functionailty in a RF program.
Can someone please help us in this regard.
Thanks.Any Body plz ? .. Even I need this.
-
User exit for MFBF Transaction when we save the Transaction
Hi All,
I have a requirement like this I am generating batch numbers for MFBF Transactioin for this I have written code in the user exit 'EXIT_SAPLV01Z-002' this user exit will generate the Batch Number accordingly client requirement and update the batch number to the cust table which I have created,But now the issue is if we will not save the MFBF Transaction or it got some error and terminated the Transaction MFBF still the batch Number is updating to the custom table I want to find which user exit will trigger when we will save the docuement in the Transaction 'MFBF'?
Thanks&Regards
MaheshHi Mahesh,
Check these user exits.
PTRM0001 User Exit for Lead Column in REM Planning Table
SAPLRMPU Customer Exits for Material Staging
XMRM0001 User exits: Backflushing in Repetitive Manufacturing
No of Exits: 3 -
Hi Folks,
Users getting the frequent dumps in production systems. actaully we observed that dumps are coming when the users accessing the MFBF transaction manually when the batch job was running for backflush and NRIV (number ranges) table is getting locked.
The dump details is:
ABAP/4 runtime error DBIF_RSQL_SQL_ERROR
Occurred on 16.04.2007 at 15:57:10
>> Short dump has not been completely stored. It is too big.
SQL error 60 occurred when accessing table "NRIV ".
What happened?
The database system detected a deadlock and avoided it by rolling back
your transaction.
Information on where termination occurred
The termination occurred in the ABAP/4 program "SAPLSNR3" in
"READ_NRIV".
The main program was "SAPLBARM".
The termination occurred in line 231
of the source code of program "LSNR3F01" (when calling the editor 2310).
The error occurred during batch input processing
Source code extract
002010 NRIV-TOYEAR = BNRIV-TOYEAR.
002020 G_FOUND = YES.
002030 WHEN 4.
002040 WHEN OTHERS.
002050 G_ERROR_IN_BUFFER = YES.
002060 ENDCASE.
002070 ENDIF.
002080
002090 IF BUFFER_ACTIVE = NO OR G_ERROR_IN_BUFFER = YES.
002100 * Die Pufferversion ist nicht aktiv oder es wurde bereits
002110 * ein Fehler im Puffer oder NrKreisServer festgestellt.
002120 * Gⁿltiges NrKreisIntervall mit Bis-GeschΣftsjahr aus der
002130 * DB ermitteln
002140 *
002150 SELECT * FROM NRIV WHERE OBJECT = P_OBJECT
002160 AND SUBOBJECT = P_SUBOBJECT
002170 AND NRRANGENR = P_NR_RANGE_NR
002180 AND TOYEAR >= P_TOYEAR
002190 ORDER BY PRIMARY KEY.
002200 G_FOUND = YES.
002210 EXIT.
002220 ENDSELECT.
002230 ENDIF.
002240
002250 IF G_FOUND = YES.
002260 * Intervall lesen, um zu sperren
002270 SELECT SINGLE FOR UPDATE * FROM NRIV WHERE
002280 OBJECT = NRIV-OBJECT
002290 AND SUBOBJECT = NRIV-SUBOBJECT
002300 AND NRRANGENR = NRIV-NRRANGENR
> AND TOYEAR = NRIV-TOYEAR.
002320 IF SY-SUBRC <> 0.
002330 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002340 P_NR_RANGE_NR.
002350 ENDIF.
002360 ELSE.
002370 MESSAGE E751 RAISING INTERVAL_NOT_FOUND WITH P_OBJECT
002380 P_NR_RANGE_NR.
002390 ENDIF.
002400 ENDIF.
002410
002420 IF NRIV-EXTERNIND <> SPACE.
002430 MESSAGE E752 RAISING NUMBER_RANGE_NOT_INTERN.
002440 ENDIF.
002450
002460 * LΣnge (maximale Anzahl Stellen) der Nummern berechnen
002470 G_NR_LENGTH = STRLEN( NRIV-FROMNUMBER ).
002480
002490 * Nummern in numerische Felder fⁿr spΣtere Berechnungen ⁿbernehmen
002500 ASSIGN NRIV-FROMNUMBER(G_NR_LENGTH) TO <G_F>.
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 1
SY-TABIX 1 SY-DBCNT 1
SY-FDPOS 32 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1
Chosen variables
Any help will get full points.
Regards
TAJUDDINDear All,
Notes are available for 4.6c version. This problem is in 3.1i and for this there is no note. Can we modify this 4.6c note and use in 3.1?
Regards
TAJUDDIN -
How to add column in table control for transaction APPCREATE
Hi All,
How can i add the additional column in table control for transaction APPCREATE.
There is structure PT1045_EXT present behind table control. But not found any customer exit or badi to display on screen.
Please help...You can add new columns
If you add new columns in tr. PHAP_CATALOG -
TABLES FOR MASTER & TRANSACTIONAL DATA
Hi all ,
can some body help me with TABLES FOR MASTER & TRANSACTIONAL DATA
DP,SNP,PP/DP.
ThanksHi,
You can find out it as per your requirement.
Use transaction SE80 - ABAP workbench -->
select Repository Information system -->
Select ABAP Dictionary --> Data base table -->
In the right hand side window you will get screen in that give details as below
Standard selection screen
Table name : enter *
In the Application Component:
You will get Tree structure to Select Application Componenet
in that expand the node of SCM --> SCM APO --> SCM-APO-MD for Master Data
Here you will get application -- Double click on the required Application
e.g. Duble Click on SCM-APO-MD-PR for Product
Here you will get list of table related to application componenet Product
<b>/SAPAPO/MATKEY Product</b>
Some of the Master Data Tables:
/SAPAPO/APNTYPE APN Type
/SAPAPO/APNTYPET Alternative Product Number Type
/SAPAPO/APO01 APO Planning Version
/SAPAPO/APO01DEL Deletion Log File Versions
/SAPAPO/APPLOCS Location Master: Relevant Location Types for Application
/SAPAPO/APPLS Application Types : SAP Application Types
/SAPAPO/CD_LOC Customizing Change Documents Location
/SAPAPO/CD_PPRFL Customizing: Change Documents: Product Profiles
/SAPAPO/CD_PRDHD Customizing: Change Documents: Product
/SAPAPO/CD_PRDLC Customizing: Change Documents: Location Product
/SAPAPO/CD_PRDLW Customizing: Change Documents: Storage Type Product
/SAPAPO/CD_PRDWH Customizing: Change Documents: Storage Type Product
/SAPAPO/CONSPROF Model Consistency Check: Check Profile
/SAPAPO/CONSPROT Model Consistency Check: Check Profile Descriptions
/SAPAPO/CUSTCHK Model Consistency Check: User-Specific Checks
/SAPAPO/CUSTCHKT Model Consistency Check: Descriptions of User-Spec. Checks
/SAPAPO/GRPTYPE Product Group Types
/SAPAPO/GRPTYPET Description of Product Grouping
/SAPAPO/LOC Locations
/SAPAPO/LOC_SUB Mapping Table for Sublocations
/SAPAPO/LOCCOMP Table Obsolete Since SCM Release 4.1
/SAPAPO/LOCMAP Mapping Table for Locations
/SAPAPO/LOCMOT Location: Means-of-Transport-Dependent Attributes
/SAPAPO/LOCPROF Version-Dependent Location Profile for Penalty Determinati
/SAPAPO/LOCT Locations Short Text
/SAPAPO/LOCVER Location: Version-Dependent Fields
/SAPAPO/LTTYPE Location Resources
/SAPAPO/LTVER Location Resources: Version-Dependent Fields
/SAPAPO/MARM Units of Measure
/SAPAPO/MATAPN Alternative Product Number
/SAPAPO/MATBOD Product BOD Assignment
Hope this information will be helpful for you work on and find out Important tables for your own BP -
Change documents for customer Z table - serious help wanted
Hi all,
I am no beginner and I don't expect any comments from beginners.
Situation: My customer wants to replace the material valuation transactions MRN1 MRN2 MRN3 due to bad performance and locking problems with own developed programs.
The valuation results will be stored in a customer Z-Table on a monthly base. For auditing and transparency purposes, this Z-table has to get a change object and the update routines will have to write change documents.
Due to the expected size of the new Z-table, it is not advisable to simply switsch on table logging.
In this huge project (and in none I participated!) nobody ever implemented the change document process for a Z-table. <b>BUT EVERYBODY CAN TELL YOU THI IS NO PROBLEM AT ALL.</b>
I read some documentation at SAP and serached for threads or blogs here. I could not find anything desribing that in depth.
So before I start, I'd be happy to get some hints from people who created own change documents and implemented the process. Links to documentation and other helpful pages are also welcome.
If I can keep the process simple, I'd like to create a BLOG on this - because I think, in the future it will get more and more difficult to pass the auditing process with undocumented features and uncontrolled table changes.
TIA.
Regards,
ClemensHi,
Please check this thread.
http://www.sapdevelopment.co.uk/tips/changedoc/cd_createch.htm
Once you create your change document object using generate update pgm option then please check the WRITE document fm.
I have done this long back i am updating CDHDR and CDPOS for 2 table YATT and YATTPLANTS. Here YATT have single record (header table) and YATTPLANTS have multiple records (item table)
function yatt_write_document .
call function 'CHANGEDOCUMENT_OPEN'
exporting
objectclass = 'YATT '
objectid = objectid
planned_change_number = planned_change_number
planned_or_real_changes = planned_or_real_changes
exceptions
sequence_invalid = 1
others = 2.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'SEQUENCE INVALID'.
when 2. message a600 with 'OPEN ERROR'.
endcase.
if upd_yctc ne space.
call function 'CHANGEDOCUMENT_SINGLE_CASE'
exporting
tablename = 'YATT '
workarea_old = o_yatt
workarea_new = n_yatt
change_indicator = upd_yattc
docu_delete = 'X'
exceptions
nametab_error = 1
open_missing = 2
position_insert_failed = 3
others = 4.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'NAMETAB-ERROR'.
when 2. message a600 with 'OPEN MISSING'.
when 3. message a600 with 'INSERT ERROR'.
when 4. message a600 with 'SINGLE ERROR'.
endcase.
endif.
if upd_yctcauthplnts ne space.
call function 'CHANGEDOCUMENT_MULTIPLE_CASE'
exporting
tablename = 'YATTPLANTS '
change_indicator = upd_yattplants
docu_delete = 'X'
tables
table_old = yyattplants
table_new = xyattplants
exceptions
nametab_error = 1
open_missing = 2
position_insert_failed = 3
others = 4.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'NAMETAB-ERROR'.
when 2. message a600 with 'OPEN MISSING'.
when 3. message a600 with 'INSERT ERROR'.
when 4. message a600 with 'MULTIPLE ERROR'.
endcase.
endif.
call function 'CHANGEDOCUMENT_CLOSE'
exporting
objectclass = 'YATT '
objectid = objectid
date_of_change = udate
time_of_change = utime
tcode = tcode
username = username
object_change_indicator = object_change_indicator
no_change_pointers = no_change_pointers
exceptions
header_insert_failed = 1
object_invalid = 2
open_missing = 3
no_position_inserted = 4
others = 5.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'INSERT HEADER FAILED'.
when 2. message a600 with 'OBJECT INVALID'.
when 3. message a600 with 'OPEN MISSING'.
* WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
* do not abort, if positions are not inserted!!!
when 5. message a600 with 'CLOSE ERROR'.
endcase.
endfunction.
a® -
Table Name needed Transaction History
Hi all,
I have a custom transaction type, which has leading Transaction Category - "Business Activity".
When I look at document in IC center according to my custom transaction type I see that document header has tab Transaction History and there I if goto on Transaction I see that some Object was created (Product Registration). I able to find "Business Activity" document in table CRMD_ORDERADM_H by Process type = My Custom Transaction Type.
My question is...What table stores created Transactions in the TAB Transaction History?
Please kinldy suggest me table names where I can look. I'm new in CRM.
Thank you,
Maria.Thank you Aydin. FM CRM_DOC_FLOW_READ_DB helped me.
-
Why loading values... is populating in custom option lists
I have created the option list and i have added the values from the view. But values are not gettiing populated in the check-in form. why loading values... is populating in custom option lists
We have encountered a similar issue again. Therefore, I did a bit of a deeper request. I will write my findings, plus there are still few open questions.
First, the customer's issue: the customer wants to have its supplier's ids in documents' metadata. Vendors are populated to a custom database table in UCM's database from a third party system. The customer complains that updates to the custom table were not populated (they do updates in 30 minutes).
a) "loading values" reproduced: I tried to repeat the scenario as described in this issue with Srinath's advices. Even when I did Publish Schema/Publish Schema Base, the issue persisted. The one thing I had to do above that was restarting the browser (I used Mozilla Firefox). Therefore, I assume that values are cached somewhere in the browser and need to be refreshed first (no error in the log)
Q1: Does anybody have a clue how this could be automated? I clicked Check In New - Standard, so I would expect the values to be refreshed
b) I checked the relevant part in the manual (+Managing Repository Content+, chapter 7) and there I found this:
New or modified schemas are automatically updated during each scheduled publishing cycle. Because the default interval between each publishing cycle is set to four hours, you will not see immediate results for new or modified schemas. You can, however, adjust the interval between each publishing cycle by changing the default value of a configuration variable. For more information, see Modifying the Publishing Cycle Interval (page 7-12).
This explains the behavior and confirms Srinath's advices.
c) now, I created a testing table, view, and metadata field, linked it together following the advices. When I got it working I added a new value to the table in the database to find out that I am in problems again - at least this time, Publish Schema/Publish Schema Base did not seem to work for me and I had to restart the content server (which is hardly something I can do every 30 mins like our customer wants).
Q2: Is there a way how to force population of database table updates to views/option lists in UCM? -
How to populate DUNS_NUMBER in AR through Customer Interface tables
Hi,
We are working on Customer Interface using custome Interface tables and run the standard Customer Interface program.
As part of source data, we have data for D-U-N-S number, which should be populated to D-U-N-S number field displayed under Profiles Tab in Customer screen.
I believe that field refers to DUNS_NUMBER_C or DUNS_NUMBER in HZ_ORGANIZATION_PROFILES base table.
My question is what is the column(field) in Interface table to be populated which maps to the D-U-N-S number on the screen said above. ?
Appreciate your quick response.
Regards,
Ramwhat you did?
-
Dear All,
Can anyone please tell me me the table for MFBF-REM Backflush
Regards
PrashantHi,
What data you are looking for?
However below are the tables used in REM.
SAFK RS Header Master Data
S025 LIS -- Run Schedule Quantities
S026 LIS -- Material Usage
S028 LIS -- Reporting Point Statistics
CEZP Reporting Point Document Logs
CPZP Reporting Points - Periodic Totals
The list is not exhaustive. Let others also add.
Regards,
Rohit. -
Archival Method of a custom transparent table
Hi, I have created a custom transparent table and now I want to archive its contents after a certain point of time. Is there any way for this? Please advice.
Thanks, Sagar...Hi Sagar,
Have a look at demo archive object EXAMPLE.
Create your custom archive object from AOBJ transaction along with the underlying write, delete, reload and read programs.
Hope this helps.
Thanks
Lakshman
Maybe you are looking for
-
How to stop syncing old podcasts?
hi. my touch keeps downloading the old podcasts whenever i connect it to my pc. what should i do on itunes to make this process stop? i just keep on deleting them on the touch whenever i see it, but when i re-connect it, they appear again. thanks.
-
Hello, Can anyone tell me....am I able to download music purchased from iTunes store onto a non-apple mp3 device, OR NOT? I am relatively new to Apple , so am fairly new to the system! Thanks!
-
Business Partner Code when using *
Hi all, In Business Partner code when the user want's to see all Business Partner and makes "*" appears the BP code, BP Name and Foreign Name. All user see this information except one that doesn't see the Foreign Name. Why?
-
Sending mail from using utl_smtp error......
Hi When i try to send mail like as follows DECLARE v_connection UTL_SMTP.CONNECTION; BEGIN v_connection := UTL_SMTP.OPEN_CONNECTION('xxx.xxx.xxx.xxx',25); UTL_SMTP.HELO(v_connection,'xxx.xxx.xxx.xxx'); UTL_SMTP.MAIL(v_connection,'[email protected]');
-
Retrieve line items of g/l account
Hi experts, while creating the G/L account, i just forget to put the tick mark on line item display, and i made many transaction on that particular G/L. how can retrieve those line in the T.Code fbl3n ? regards, Sanju M S