MHKIM:(AP) PREFIX OF AP INVOICE NUMBER

QUESTION
===========
AP number가 ERS + 날짜 + 일련번호 (예> ERS-12-DEC-06-3) 이런식으로 생성되서 output에 ap number가 다
보이지 않습니다.
그리고 날짜 형식이 저희가 평소에 보는 형식과 많이 달라서 YYMMDD형식으로 나왔으면 하는데..
수정 가능한지 알고 싶습니다.
참고로, 저희 AP NUMBER 규칙은 YYMMDD + PO + 일련번호 (예>061206-PO-003) 입니다.
똑같이는 아니더라도 유사하게 규칙을 구성하고자 합니다.
ANSWER
==========
POXIVRPB.pls
FUNCTION create_invoice_num( X_pay_on_receipt_summary_code IN      VARCHAR2,
          X_invoice_date          IN     DATE,
     X_packing_slip          IN     VARCHAR2,
     X_receipt_num          IN      VARCHAR2,
p_source IN VARCHAR2 := NULL /* <PAY ON USE FPI> */)
/* <PAY ON USE FPI START> */
IF (p_source = 'USE') THEN
x_progress := '025';
x_tmp_invoice_num := 'USE-' ||
TO_CHAR(X_invoice_date) || '-' ||
TO_CHAR(X_tmp_sequence_id);
ELSE
/* <PAY ON USE FPI END> */
-- Use Profile option to determine prefix
FND_PROFILE.GET('ERS_PREFIX', X_prefix);
X_progress := '030';
IF (X_pay_on_receipt_summary_code = 'PAY_SITE') THEN
     X_progress := '040';
     X_tmp_invoice_num := X_prefix || '-' ||
                    TO_CHAR(X_invoice_date) || '-' || <================= 이 부분입니다.
                    TO_CHAR(X_tmp_sequence_id);
     ELSIF (X_pay_on_receipt_summary_code = 'PACKING_SLIP') THEN
     X_progress := '050';
     X_tmp_invoice_num := X_prefix || '-' ||
                    X_packing_slip || '-' ||
                    TO_CHAR(X_tmp_sequence_id);
ELSIF (X_pay_on_receipt_summary_code = 'RECEIPT') THEN
     X_progress := '060';
     X_tmp_invoice_num := X_prefix || '-' ||
                    X_receipt_num || '-' ||
                    TO_CHAR(X_tmp_sequence_id);
END IF; -- x_pay_on_receipt_summary_code
END IF; -- p_source
Here is how it works:
Go to Supplier form...query out supplier...click Sites..
choose the site which has pay on receipt setup.
click Purchasing...
If Pay on = USE, then the invoice_num will use invoice_date
Otherwise,
if Invoice Summary level = 'PAY_SITE', then invoice_num uses invoice_date
if Invoice Summary level = 'PACKING_SLIP', then invoice_num uses packing slip
if Invoice Summary level = 'RECEIPT', then invoice_num uses receipt_num.
위의 Invoice name생성 로직에서도 나타나 있듯이,
date의 경우("이 부분입니다."라고 표시한 부분) 따로 Format을 지정하는 곳은 없습니다.
Pay On Receipt기능을 통해서 자동 생성되는 invoice이름은
Prefix -Date-Sequence num 등으로 그 형태가 고정되어 있습니다.
만약, Format을 변경할 수 있다 하더라도,
Invoice이름에 대해서만 변경되는 것이 아니라, AP 혹은 전 모듈에서 사용되는 Date값의 Format이
모두 변경될 것입니다.

Yes..you are correct. You need to cancel XX2 and re-enter with XX3.

Similar Messages

  • Excise Invoice number and Internal Number

    Hello Friends
    I have some queries ,I will be thankful to you if you could guide me, in understanding themu2026
    1) When we see the document in J1IEX ,in excise invoice tab, we see two fields :Excise invoice number and Internal Number.
    For Internal number we define the range in object J_1INTNUM, but how do we define range for Excise invoice  number
    2) Where do we maintain the relation between GRPO (Excise Transaction type) with the Excise Invoice number
    3) When do we require updating of register ,is it done on daily bases, and  how can we see the entries of RG23A part 1.
    4) We have excise invoice number  range of posted ,in process and cancel documents which is  assigned to GRPO transaction type, while running J1I7 though we select last option   part 1 posted  and part 2 not  posted, still the system shows the cancelled documents, How can I avoid  the cancel documents
    Thanks
    Siddharth

    1) When we see the document in J1IEX ,in excise invoice tab, we see two fields :Excise invoice number and Internal Number.
    For Internal number we define the range in object J_1INTNUM, but how do we define range for Excise invoice number
    -->> Ex inv nbr will be entered based on the vendor ex invoice .. this is external nbr assignment
    2) Where do we maintain the relation between GRPO (Excise Transaction type) with the Excise Invoice number
    --->> there is no relation between grpo vs. ex inv nbr
    3) When do we require updating of register ,is it done on daily bases, and how can we see the entries of RG23A part 1.
    >> u can see in J1I7 or thru table J_1IPART1
    4) We have excise invoice number range of posted ,in process and cancel documents which is assigned to GRPO transaction type, while running J1I7 though we select last option part 1 posted and part 2 not posted, still the system shows the cancelled documents, How can I avoid the cancel documents
    >> wait for others answers..

  • Depot Excise Invoice number skipped ???

    Hi Everyone
    For Ex. say our depot excise invoice number range is from 1to 100, assuming the current number is 51. Some day back there was a jump in the depot excise invoice number range. In between 1 and 51 the number "25" is missing.
    So the excise department has asked the company as to why we have skipped the number 25.
    I have checked the table J_1IRG23D, but the skipped excise invoice number is not appearing in the tables, I mean it says "No table entries found for the specified key"
    Our Company wants to know the exact reason as to why the system has skipped the depot excise invoice number "25".
    Whether it is the system mistake or user mistake or some body else fiddling with the system.
    Please offer you valuable suggestions to solve this problem
    Thanks & regards
    satish

    Hi,
    SAP 99.9 % will never skip the number range on its own.
    As per my understanding:
    1.Some one has manually deleted the Depot Excise Invoice number after creation (due to the user mistake at selecting the 
      appropriate Incoming Excise invoice, Price , material or etc reason. And while creating the New Depot excise Invoice Number  
      he forget to adjust the number range at object 'J_1IDEPINV' for corresponding Series Group. This u can confirm by checking
      the entry at Item level, instead of Header at it will not show that entry.
    2.May be due to the Depot Sales Returns for respective Depot Invoice canceled and Deleted by the user.
       Here, deleting the excise Invoice is not Valid practice as per Excise Tax rules of GOI.
    3. Kindly check, whether Number Range Changes happend for respective Series Group between the Fiscal Year 2010-11.
    Please feel free to correct me and It will be a value addition if you find any other solution.
    Thank You,
    RB

  • How can i get an old itunes invoice number if I permanently deleted it from my email

    I need an old itunes invoice number to fix an itunes ID issue but i delete these invoices every three months from my email and email trash i can i get a copy

    Login to the iTunes Store.
    From the menu bar click Store > View My Account
    Click Purchase History from the Account Information window.

  • To get the invoice number of amount applied in view prepayment applications

    hi all
    In AP abc Manager-Invoices--when we give invoice number in the invoice number field we get to see supplier name etc in the same Invoices Form there is a
    tab called General from which we can get Amount Paid ,
    Similarly there is a tab called View Prepayment Applications ,when clicked on this tab we can see Amount Applied and invoice number corresponding to that amount applied
    KIndly help me from which table or view this invoice number can be obtained
    i got amount applied from the view AP_UNAPPLY_PREPAYS_V,but i cant find the invoice number.
    kindly guide
    thanking in advance
    Edited by: makdutakdu on Dec 19, 2011 11:29 AM

    Thanks Robin,
    i was able to get a work around for this. For the time being i am using the following code snippet, i will try using the one u sent an will see if this works too.
    // create nodeinfo object for the node that table will bind to
    final IWDNodeInfo nodeinfo = wdThis.wdGetContext().node<NODENAME>().getNodeInfo() ;
    //get the structure of the node
    final IStructure struct = nodeinfo.getStructureType() ;
    Iterator iter = nodeinfo.iterateAttributes() ;
    if (null != struct)
    totalFields = struct.getNumberOfFields();
    else
    for ( Iterator i = nodeinfo.iterateAttributes(); i.hasNext(); i.next() )
              totalFields++;
    for(count = 1; count <= totalFields; count++)
         fieldName = nodeinfo.getStructureType().getField(count).getName();

  • Purchase Order report with MIRO invoice and/or FI invoice number

    Hello,
    I am searching for a standard report which will allow PO number as input and dispaly the MIRO invoice number/s and if possible the corresponding FI document numbers.
    I have exhausted all the reports I know of - ME80FN. ME2* series, FBL3N.
    These are two options I know of but want to avoid:-
    SQVI query
    Z-report
    If there are no standrad reports, can someone explain use of Flexible analysis to create such a report.
    (Must confess that I have not fully explored that option yet).
    Thanks,
    Saurav.

    Hi,
    You can get invoice number in RSEG table
    pass this invoice number in BKPF into field  AWKEY field where you will get invoice number+fiscal year and in same table you will get BELNR FI dc for same invoice number
    Regards
    Kailas ugale

  • Report showing Invoice number, vendor,material and qty

    Hi Guys
    Is there any report where we can take report for vendor, invoice number, material and qty.
    Regards

    Dear
    yeah! yau can check ME80FN with purchase order history setting.
    full marks to me if solved
    regdsd
    dev...!

  • PO number and Invoice number paying the payments using FBZ1 tcode?

    Hi all,
    i developed a report for pending payments as per client requirement.
    i'm getting the records in my output.
    but some records are not getting the PO number,Invoice number and due date as per requirement.
    the client some times doing the payments using the FBZ1 tcode.
    That items not displayed in my report.
    so, plz give me suggestions for getting the above fields data in my report.
    Thanks,
    Srini

    Yes..But they need Po number, Invoice number and due date fields in the report
    and they need days of pending  payments also.
    That is the reason, They need z report
    Thanks,
    Srini

  • Excise Invoice Number

    Hi Sap Guru
    Can u elobarate explanation regardind  this. I need Can i get the Excise invoice number or Bill Number  in FBL5N open item report without development. If yes/No, Can u guide me how to resolve this.
    Its Urgent,
    Thx in Advance
    Neha

    Hi,
    In Change Layout --> Hidden Fields: Billing Document.
    Best reagrds,
    Amit.
    Note: Also, Column: Document No (Sort it by Type: BL)

  • How to find Invoice number linked to FI accounting document number ??

    Hello All,
    I have been looking around for all possible combinations to find the link between FI accounting document number (BSEG-BELNR) and Intercompany Invoice number (for which billing corr. to STOs' or POs' is done).
    The requirement is that during ERS posting, we have accounting document numbers (BSEG-BELNR) and associated STOs' for this (BSEG-EBELN), but we are unable to map the Intercompany Billing Invoice number(s) (where the billing corr. to STOs' obtained from BSEG-EBELN) to this accounting document number (BSEG-BELNR).
    Any pointers or detailed view solution would be of great help.
    Thanks,
    Ansh

    Hello DPM,
    Thank you for the descriptive help. But my requirement is to look for Intercomapny Billing number (VBRK-VBELN) linked to an accounting document number (BSEG-BELNR) and not Invoice Receipt Number.
    The steps that I am following are:
    From BSEG, found EBELN (Stock Transfer Order) and XREF3 (Reference Key, combination of fiscal yr., some ref. number, maybe GR no. and ref item no.), based on BELNR (Accounting document number).
    From EKBE, found XBLNR (Reference Delivery Number or Direct Intercompany Billing Number on which GR is done) based on
    EKBE - EBELN = BSEG - EBELN
    EKBE - BELNR = BSEG - XREF3 (only ref and item no., considering it to be a GR no.)
    EKBE - VGABE = '1' and EKBE - BEWTP = 'E'.
    From VBRP, found VBELN (Intercompany Billing No., which is a desired number) based on
    VBRP - AUBEL = EKBE -EBELN (Stock Transfer Order)
    VBRP - VGBEL = EKBE - XBLNR (Delivery number)
    Here, I am not sure about 2 things:
    Whether the reference no in BSEG-XREF3 will always be Goods Receipt number for Stock Transfer Order or not. If not, then what it can be and how I will have to proceed further then.
    Secondly, If in case for an accounting document number, I have 2 Stock Transfer orders (BSEG - EBELN) and same reference number (BSEG-XREF3), then from History table (EKBE) I get only single delivery based on which GR was doen for both STOs', then I shall be getting single Intercompany Billing Invoice from VBRP or different ?
    Kindly provide your inputs.
    Thanks,
    Ansh

  • Show the PO and Invoice Number along with Distribution Line Info

    Does any one have some code that can show the PO and Invoice number along with the distribution line detail?
    I'm tring to get to the po.po_vendors for segment1 and po.po_distributions_all but it screws up at the po.po_lines_all table which needs outer joins and it's just not working for me.

    In case Invoice Distribution is matched to a Purchase Order then
    ap_invoice_distributions_all.PO_DISTRIBUTION_ID and ap_invoice_distributions_all.DIST_CODE_COMBINATION_ID is the link to po_distributions_all table
    Hope this help
    Ashish

  • Invoice number on F150 dunning letter

    Hi,
    We need to have invoice number on the dunning letter on the trans code F150. May I know what are aspects or points we need to suggest to Abapers form the FI point of view
    Thank you
    Chaithra

    hi,
    Henri
    Thanks for your response. May i know in detail about it please. Where to write these sap scripts please.
    Thank you
    Chiathra

  • Excise Invoice number not dispaly in ledger (FBL5N)

    Dear Experts,
    Generally Excise Invoice number display in customer Customer Ledger (FBL5N) IN Reference key 3 field. But  In some cases it is not display.  Please share possibility.
    Regards
    BK GAIKWAD

    Hallo Sir,
    Please ignore my Previous replay,
    Actually when invoice is released for accounting entry (VF01) 90% of Invoice number  have been display in FBL5N Ref. key 3, but only 10% invoice number not display with same customer / Excise group / series group. some issues.
    I am unable to address it. please help
    Regards
    BK GAIKWAD

  • Excise Invoice number not display in case auto generate

    Dear Experts,
    we have use auto excise invoice generation functionality, it is working properly, but only Excise Invoice number not display after saving billing document. what to do for display the same after saving billing document.
    Regards
    BK GAIKWAD

    Thank you Lakshmipathiji,
    My question is when we have create excise invoice through J1IIN excise invoice number has been display in bottom line after saving billing document.
    But in case we have creating  auto generate Excise invoice, Excise Invoice number not display in same screen. How to do to display excise invoice after saving billing document.(Excise invoice generating in background but number not display in same screen)
    We have changeover manual to auto generate excise invoice system.
    Regards
    BK GAIKWAD

  • FBL5N_Excise Invoice Number not display

    Hallo Experts,
    I am SD Consultant, when  after create the Excise invoice, number will be display in FBL5N_Customer ledger (Ref. key 3 field)  but only 10% cases it will not display with same customer / Excise group / series group
    I am unable to address it. please help
    Regards
    BK GAIKWAD

    Thank you Lakshmipathiji,
    My question is when we have create excise invoice through J1IIN excise invoice number has been display in bottom line after saving billing document.
    But in case we have creating  auto generate Excise invoice, Excise Invoice number not display in same screen. How to do to display excise invoice after saving billing document.(Excise invoice generating in background but number not display in same screen)
    We have changeover manual to auto generate excise invoice system.
    Regards
    BK GAIKWAD

Maybe you are looking for

  • Deleting more than one file at a time from Nomad Jukebox Zen Xtra 4

    Is there a way to delete more than one file at a time from Zen Xtra? Actually, I'd like to delete most of the 800+ files and the only way I've found is to do them one at a time..! Help!

  • HP Color Laserjet CM1312nfi MFP and OSX Yosemite

    Hello all. I have a HP Color Laserjet CM1312nfi MFP, and i can't install it on OSX 10.10 Yosemite. When i plug in the USB cable, nothing happens. My Mac does not find the printer, and i can't install driver from HP's website. All USB ports in my Mac

  • Problems in assignment of a contract with several Items to orders.

    Hi everyone, I have a problem in SD Sales Document Processing : I have a contract that contains 2 Items (with the same Material Number) I want to assign this contract to multiple Orders by using the transaction 'VA02' : Code : CALL TRANSACTION 'VA02'

  • Create a script for "when movie ends, go to new page in site"

    Sorry. Very new to this. I have a simple Flash animation which I have imported to a page in my DW doc. When the anim finishes, I would like the page to go to a different page in the same site. Without clicking. I assume I have to write some AS on the

  • USER_LOCK PKG

    can anyone tell me how to run USER_SQL pkg.......... as i have seen its $ORACLE_HOME/RDBMS/ADMIN/userlock.sql.... i wanna know that how can i grant execute right on this pkg to role PUBLIC.... regards soumen