JE- UDF - FMS - Remarks

2007B
Journal Entry
Need to get the remarks of any of the orign document (AP Invoice, AR Invoice, Payments, Outgoing Excise, Incoming Excise) in the Journal Entry UDF using FMS . What is the query ?
vijay

It can only be one FMS for one type. For Example:
AR Invoice
If $[OJDT.TransType\]=13
Select I.Comments
From OINV I
Where I.DocEntry=$[OJDT.CreatedBy\]
AP Invoice
If $[OJDT.TransType\]=18
Select I.Comments
From OPCH I
Where I.DocEntry=$[OJDT.CreatedBy\]
Thanks
Gordon

Similar Messages

  • UDF & FMS on Stock INC1 (Stock Posting Rows)

    Hi All,
    We have added a UDF to the INC1 table and assigned a FMS to pull some other data from the corresponding Item record.
    If Items are added manually to the Stock Counting screeen the FMS is triggered and the UDF is populated with the required data.
    However, if the Add Items option is selected followed by a particular Item Group, when the Items are added the FMS is not triggered, hence the UDF is not populated.
    Any ideas as to why and a possible solution.
    Looking forward to your response.
    Regards
    Earl

    Hi,
    Please post screen shot INC1 table with UDF and FMS query here to check.
    Thanks & Regards,
    Nagarajan

  • Udf FMS date update excluding Weekend

    Hello friends,
    Have made a udf in the Sales Order Header as Final Approval Drawing Req Date U_FAADT in which I want that if a Sales Order posting date is 14/12/2010 then this udf should automatically update with the next day date i.e 15/12/2010 but if the next day is Friday or Saturday then the date should come for Sunday.
    The requirement is as such that Friday and Saturday are holidays for the company and the client wants to have this field updated  on 24 hours basis but it should not consider Friday and Saturday as its holiday. Also note in SAP base setup Holiday Master Weekend is set from Friday to Saturday. Will this help in any way of updating the field or through formated search.
    Kindly advise what best solution can be given
    Regards,
    Soni

    Hi Soli,
    Try this:
    SELECT
    CASE WHEN DatePart(DW,$[ORDR.DocDate.Date])=5
    THEN DateAdd(DD, 3, $[ORDR.DocDate.Date])
    WHEN DatePart(DW,$[ORDR.DocDate.Date])=6
    THEN DateAdd(DD, 2, $[ORDR.DocDate.Date])
    ELSE
    DateAdd(DD, 1, $[ORDR.DocDate.Date])
    END
    Thanks,
    Gordon

  • FMS- Journal Entry and AP Invoice

    2007B
    I ve created a UDF 'AP Remarks' in the JE Header level.
    I need the data in 'remarks' field of the AP invoice to be copied to the UDF in JE
    what is the FMS query for that?

    You can use the next query:
    If $[OJDT.TransType]=18
    Select I.Comments
    From OPCH I
    Where I.DocEntry=$[OJDT.CreatedBy]
    (But the Auto Refresh function works only connected to a manually modified field.)

  • Cannot switch base units on Goods Receipt PO copied from Purchase Order

    Hi,
    I am wondering if there is a simple trick or setting for this or if we have to use a UDF/FMS...
    When using Uom for sales and purchasing, you cannot switch between Yes and No for base units on the target document(GRPO) when copying a PO to GRPO.
    For example, enter a purchase order selecting 'No' for base units and enter quantity 1 for item with Uom case(25 pcs in a case). 25 are ordered. If the warehouse receives 23 instead of a full case from the supplier,  they want to be able to enter 23 on the GRPO(copied from PO). They don't want the warehouse staff calculating what percentage to put in for quantity (23/25 = 0.92),  they would just like them to use the drop down box and change the base units to Yes and receive the quantity 23 units.
    Any suggestions?

    Hi,
    How often this would happen?  If it is very frequent, my suggestion would be considering it when you create PO.  You know, if you could change that option, the link between PO and GRPO will be broken.  It is not recommended.
    Thanks,
    Gordon

  • How to get value in variable from query in PLD / ALD

    Hi, everyone,
    I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?

    Hi
    Try this,
    ->> Open the GRPO document.
    ->> Click the Tools on menu bar and Open the Form Setting widnow.
    ->> put the tick mark in BaseRef, BaseDoc, TrgetDoc
    i think, Base Document no field default in SAP B1.
    try to search the Base doc. Date in row level on GRPO document.
    Try to Create UDF & FMS then assign the FMS in UDF
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry
    WHERE
    T1.[DocNum]=$[PDN1.BaseRef]
    OR
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry and
                T0.BaseLine=T1.LineNum and T0.BaseType=22
    WHERE T0.[BaseType] =22
       and T1.[DocNum]=$[PDN1.BaseRef]
    IF you more details, Check the below thread.
    Re: How to store the invoice number in the head of the related delivery ?
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Dec 11, 2009 6:57 AM

  • DRQ : Payment Wizard Recommendation Report

    Some of our customers Vendors change their bank account numbers according a AP Invoice. In Payment Wizard run user is able to see the Vendor Bank Account Number only after the payment are added. If the account number is incorrect, accountant must manually cancel all payment wizard entries. Many accountant require that Vendor bank account number should be checked before the payment run is excecuted. Therefore in the Payment Wizard -> Recommendation Report the Vendor bank account number from the AP Invoice should be included in this step.
    This cannot be done by using UDF/FMS cause you are not able to create one in this form. No workaround for this issue.
    Regards
    Janne Paananen

    Hi Janne,
    I trust you are well.
    Please post the DRQ in the forum ['SAP Business One Product Development Collaboration'|/community [original link is broken];.
    All the best,
    Jesper

  • Default expense account for vendors

    In the BP Master for vendors, there should be a field for a default GL account for expenses in service-type purchasing documents.  This account should automatically be used to populate the GL account field service documents for the vendor, with the ability of the user to overwrite it.  This facility is available in every other program that I have seen in 25 years, and is frequently requested by users.

    Hello Marcia,
    Would you please kindly consider UDF+FMS to realize this feature? You may create UDF on BP Master Data to save relevant account code; then assgin FMS to the Account Code field in Marketing documents to retrive account code according to the BP specified at document header.
    Regards,
    Canna Mu
    SAP Business One Forums Team

  • Warehouse Location in Goods Issue

    Hi All,
    I want to show (warehouse) location name from OIGE U_loc in header level in goods issue form to item level of warehouse location field from table IGE1 U_location in same form when we click on format search how can i do so give me possible queiry.
    Ketan.....
    SAP B1.

    Hi Ketan,
    Try this,
    If you add the same wareshouse items means, you can add the UDF & FMS in Header,
    but IF you add the multiple items of different warehouse, best you can add the UDF & FMS in Row level.
    for ex.
    Select $[TABLE.WareHouseLocation]
    Select $[IGE1.WareHouseLocation]
    AutoRefresh -> WareHouse (or) ItemCode.
    Regards,
    Madhan.

  • Warehouse Stock levels

    Forum,
    When we process a sales order, the current stock level for an item is displayed. This is currently the total of all warehouses.
    Is it possible to display the stock quantity of a single warehouse on the sales order entry screen?
    Regards,
    Juan

    Dear Juan,
    At the time of creation of sales order in warehouse column press Ctrl+TAB system show you actual stock position of your warehouse.
    Dear All,
    Please first suggest system function if its not fulfill the user requirement than definitely try to MAP system through UDF & FMS.
    Regards
    MANGESH PAGHDHARE

  • Cheque formula

    Trying to create a query which looks at the following tables:
    Deposit - ODPS
    Deposit lines - OCHH
    Payment means - RCT1
    This query is aimed at providing a list of cheque details per deposit slip number, which includes specific UDF's which are sitting in the payment means/ cheque screen.
    I would like the following information:
    ODPS - Deposit
    Payment number
    Payment date
    Where payment type = 'K' = cheque
    Where payment number = [0%]
    OCHH - deposit lines
    Cheque date
    Cheque number
    Branch
    A/C number
    Cheque amount
    RCT1
    Amount
    UDF1
    UDF2
    When I bring the tables together, the lines duplicate.
    I would greatly appreciate some assistance please.

    Hi Gordon,
    Cheque line items still duplicating in the report.  I hope the information I have outlined below explains the requirements.
    I have two UDF's in the incoming payment Cheque screen.
    1.  one is free text (which may or may not be entered)
    2.  is a FMS which is $[ORCT.cardname).
    Formula used:
    SELECT DISTINCT T0.DeposDate, T0.DeposNum, T1.CheckDate, T1.CheckKey, T1.CheckNum, T1.Branch, T1.AcctNum, T1.CheckSum, T2.U_X10_chename,T2.U_X10_chenam  FROM ODPS T0 INNER JOIN OCHH T1 ON T0.DeposId = T1.DpstAbs
    INNER JOIN RCT1 T2 ON T2.DocNum = T1.RcptNum
    WHERE T0.DeposType ='K' and T0.DeposDate = '[%0]'
    Current results
    #Date,Pay No.    Cheque Date     Cheque Key      Cheque Num      Line      UDF(free text)      UDF (FMS                                                                               
    $[ORCT.Cardname)
    1  08.10.08  9     08.10.08     16                     1            10     ATESTA         Customer A
    2  08.10.08  9     08.10.08     16                     1            10     BTESTB         Customer A
    3  08.10.08  9     08.10.08     17                     2            20     ATESTA         Customer A
    4.  08.10.08  9     08.10.08     17                     2            20     BTESTB         Customer A
    Line 2 and 3 are NOT correct (as you can see the cheque number is duplicated).
    What results should look like
    #Date,Pay No.    Cheque Date     Cheque Key      Cheque Num      Line      UDF name        UDF (FMS                                                                               
    $[ORCT.Cardname)
    1  08.10.08  9     08.10.08     16                     1            10     ATESTA         Customer A
    2.  08.10.08  9     08.10.08     17                     2            20     BTESTB         Customer A

  • Provide automatic Remark in detail part of journal entry by FMS

    I am going to use FMS in journal entry. I want to provide automatic remark base on ref2 in detail part of journal entry .  I also provided  FMS for ref2 and it's value is base on employee list . I mean there is a look up in ref2 and it retrieves  employee's  Code. I would like to calculate remark values from ref2 as Employee' name and employee's last name.  I donu2019t know how I must write SQL script for this purpose and retrieve employee' Name and last name base on ref2 value in journal detail.  I would be grateful if some body help me in this matter.
    Thanks

    Dear Farhadn,
    I am not sure of what information you are trying to add in the UDF. If I understood correctly, you have already a FMS on the field ref2 of the JE that shows name and surname of the employee. According to this data, a value will show up in the other FMS.
    Can I ask you where this value comes from? Is it a calculation?
    I have to warn you that if you want this value to appear before the JE is added in the system I am afraid what you are asking it is not possible.
    The FMS can work if there is a value in the field ref2 in the table, but this value is stored in the table when the user clicks update on the JE. Until then, the FMS will not have the name of the employee.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Transfer a UDF textfield from bill of materials to a PO via FMS

    Dear community,
    I really do need your help: for one of our costumers we created a UDF within the lines of the bill of materials in order to fill in some information concerning the components of the product (actually the lines are filled with production steps). When creating a production order we want to take that information as well into the PO.
    We installed 8.8 Pl 17  - there is already a comment field which is copied from The Bill of materials to the PO. unfortunately it can only be filled with a maximum  of 254 characters - not enough for my purpose...
    I already created a query and connected it to my datafields - it works pretty fine as long as We do not use the same item (production step) more than once within the bill of materials. As soon as I use it more often the query does not work as expected. the reason is properly that I am not able to use the line number of the component in my query...
    any ideas how I can upgrade my query? I will attach the written query within the next couple of days - unfortunately I do not have access to it at the moment.
    I really hope you can give me some advice - otherwise I get in trouble
    Thanks in advance and  have a great weekend,
    daniel
    Edited by: Daniel Ebi on Jan 14, 2011 7:17 PM

    Dear Daniel,
    You may try this FMS query:
    SELECT T0.U_UDF FROM ITT1 T0
    WHERE T0.Father = $[owor.itemcode\] and T0.code = $[wor1.itemcode\]
    If you have same itemcode more than one in a single BOM, change T0.code = $[wor1.itemcode\] to
    T0.Linenum=$[WOR1.LineNum\]
    This question belongs to the main form. It is nothing to do with add-on.
    Thanks,
    Gordon

  • How to get a Header UDF value in a FMS ?

    Hi !
    How is it possible to get a Header UDF value from a Formatted Search in a header ?  If we don't want to create as many FMS as there are marketing documents in the system, how is it possible ?  Can we have a syntax like the following ?
    SELECT T0.OnHand
    FROM OITW T0
    WHERE T0.ItemCode=$[$38.1.0]
    AND T0.WhsCode=$[$U_Nwr_WH.0.1]
    Thanks,
    Luce

    Hi Gordon,
    oh, I'm sorry, I did a mistake...
    In fact, my question is "How can we get a header UDF value in any FMS without specifying the table name?" !!!!!
    Can we access it through specific syntax like $ and [ ?
    thanks,
    Luce

  • FMS for Udf based on Posting Date + 4 weeks and +4 weeks excluding weekends

    Hello,
    Requirement 1
    Have made a udf in the Sales Order Header as Manfacture Drawing Rel Date U_FDRDT in which I want that if a Sales Order posting date is 15/12/2010 then this udf should automatically update with the + 4 weeks date i.e 14/01/2011
    Requirement 2
    Another UDF is also made as U_FRDWDT in which I want that if the Sales Order posting date is 15/12/2010 then this udf should automatically update + 4 weeks EXCLUDING Fridays and Saturdays which is there in the 4 weeks hence the result should be e.g 27/01/2010 which is excluding Fridays and Saturdays.The requirement is as such that Friday and Saturday are holidays for the company and the client wants to have this field updated on + 4 weeks basis but it should not consider Friday and Saturday as its holiday.
    Also note in SAP base setup Holiday Master Weekend is set from Friday to Saturday. Will this help in any way of updating the field or through formated search.
    Kindly advise what best solution can be given
    Regards,
    Soni

    Hi,
    One question per thread. This is forum rule.
    Here is FMS for the 1st one:
    SELECT DateAdd(WW,4,$[ORDR.DocDate\])
    Please post another for the 2nd.
    Thanks,
    Gordon

Maybe you are looking for

  • How to show all records by default on search result page?

    Hi I am trying to make a search page that would execute the search in the database based on one or more field constraints. (Using MySQL,PHP) I have  2 columns in the database "vm_ip" (primary key) <IP address>, "Operating_System" <Any, Windows, Solar

  • Don't want clips captured to timeline

    I've 25 HDV tapes to capture, I'll go in short iam capturing with scene detection after every cut clip is comes in my bin and confirming. Is there any way that cud stop this thing I just want capture to hdd and confirming later when I import clips to

  • How to detrimine date duration, minus weekend days and days on hold

    I need to determine duration of a request by when the request went from Milestone_ 3 to Milestone_8 (but if Milestone_8 is null use Milestone_7) minus weekend minutes. But I also need to find the days when a request was On Hold and subtract those day

  • Mapping custom faults to custom exceptions

    Hello all, I defined a web service that could thow for some operations custom faults. These custom faults were manually defined in the WSDL file of the web service. I sent some request messages to the web service and I received the result and everyth

  • How to Undeploy SCA from NW CE 7.1

    Hi All - I've deployed an updated software component archive (SCA) for an application, but would like to roll back to a previous version of the SCA.  I saw some help guides on undeploying with NWDS, but I can't figure out how to access NWDS. What oth