Convert &gt_tnati-ebeln& - purchase order to 1234567890 - purchase order

Hi All,
I have got data from as below
DATA: lv_covtitle TYPE so_obj_des.  " Cover text
  SELECT SINGLE objdes
                FROM tnati
                INTO lv_covtitle
                WHERE spras = nast-spras AND
                      kappl = nast-kappl AND
                      kschl = nast-kschl.
  IF sy-subrc EQ 0.
Pass cover text to fp_outputparams
    fp_outputparams-covtitle = lv_covtitle.
  ENDIF.
Now in field value for field lv_covtitle is &gt_tnati-ebeln& - purchase order
and gt_tnati-ebeln = 1234567890 so 1234567890 - purchase order should be passed to parameter fp_outputparams-covtitle...
But its coming as &gt_tnati-ebeln& - purchase order in SOST transaction...
Please help me how can i convert lv_covtitle value before passing it to the parameter fp_outputparams-covtitle
thank you in advance...

Hi Pawan
The field lv_covtitle contains the command to pass value to script &gt_tnati-ebeln& but not the value itself.
Why not perform a read table on gt_tnati then pass that value to fp_outputparams.
DATA: lv_covtitle TYPE so_obj_des. " Cover text
SELECT SINGLE objdes
FROM tnati
INTO lv_covtitle
WHERE spras = nast-spras AND
kappl = nast-kappl AND
kschl = nast-kschl.
IF sy-subrc EQ 0.
*read the table gt_tnati
read table GT_TNATI with table key <key> = <ref_para>.
fp_outputparams-covtitle = gt_tnati-ebeln.
ENDIF.
regards
Isaac Prince

Similar Messages

  • Converting a production order in PRQ (purchase requisition).

    Hi,
    how converting a production order in a purchase requisition?
    Best regards

    hi,
    u cant convert the production order into Pr.
    ho ever u can procure the material against the Production order using the account assignment category.
    also check with ur PP consultant for automatic creation of PR with ref to Production order, after exploding the BOM.
    check MRP run.

  • Planned Order creation for Sales Order and Purchase Order

    Hi
    We have a following requirement.
    In normal scenario when we have demand for material  which was created by MD61 and in addition to that if there is Sales Order the 1st planned order gets revised.To better expalin this consider possible scenario
    You create plan via MD61 for 200 qty .The system creates Planned Order for 200.
    Now there is Sales Order for 150 peices.Then what happens is original  Planed Order of 200 is changed to 50 and another planned order is created for 150 peices.The requirement is not summed.
    Now in new scenario instead of Sales Order there is Intercompany Purchase Order of 150 peices.
    Now the system is not changing original Planned Order of 200,but it created another planned order of 150.So now there are 2 Planned Orders of 150 and 200.
    What I want to know is there any way wherein the system will reduce the original planned order (similar to Sales Order scenario)
    Regards

    Hi,
    Use Strategy 52 in urs case.
    PIR witll be created .
    None convertable planned order will be created.
    Once you get sales order for that material.
    New planned order will be created which will consume PIR( planned order ).
    Eg.
    PIR 10.
    Planned order 10 qty.
    Sales oder 6
    Planned order for SO 6 qty
    Planned order through pir will become 4 qty.
    Regards,
    Vishal

  • HOW WE FIND OUT OPEN PURCHASE ORDER AND CLOSED PURCHASE IN THE TABLE?

    HI,
    PLZZ HELP ME.
    what are fields names for open purchase order and closed purchase order
    thanks

    Hi param,
    Go to mseg table, pass the purchase order number and purchase order item. if the mseg-menge = ekpo-menge for the corresponding purchase order then consider the purchase order is close, else it is still open. even check if the entries are not there for corresponding purchase order in mseg table then also it is open.
    select mblnr zeile matnr menge from mseg into it_mseg where ebeln = it_ekko-ebeln
    and    ebelp = it_ekpo-ebeln.
    if sy-subrc <> 0.
    then consider the purchase order is open.
    This is the first case.
    even u can consider like this
    if sy-subrc = 0.
    if it_ekpo-menge > it_mseg-menge.
    then also the purchase order is open.
    Regards,
    Santosh Kumar M.
    Award points if it is useful.

  • Purchase order created from sale order ( third party)

    Hi...
    In third party sale, when sale order is created in SAP system will automatically creates Purchase requisition which can be converted into Purchase order,
    My requirement is i need to identify against which sale order the above purchase order is created, do this purchase order has any reference of sale order.
    Is there any way where i can track the purchase order number entered while cretion of sale order in the purchase order generated after creation of sales order.
    Suggestion will be worth rewarding.
    Regards
    SARFARZ

    Hi
    I think you are little bit confused.The PO number entered while creating the Sales order is nothing but the customer Purchase order.This we may receive in different forms.Hard copy or Mail etc.We will give this number as a reference in sales order.
    Where as for third party orders, depending on the schedule line category (SD), PR will be generated.This will PR will be converted in to PO.In PO item detail, you can find account assignment tab, where you can find the sales order number.
    If you want to link customer PO to the SAP PO, then you need to link the two tables.
    Regards
    Ramakrishna

  • Multiple purchase orders for one sales order: ME59

    Hi,
    I have issue with converting sales order into a purchase order.
    A standard third party sales order (type TAS) with multiple line items is being converted to a single purchase order.
    In case of a free of charge sales order (type FD) with multiple line items, each line item is being converted to an individual PO.
    The difference between TAS and FD is the item catecory and schedule line category.
    In both the above cases only one purchase requisition is being created per sales order. The issue is when this PR is being converted to a PO. (ME59 is used to convert the PR).
    Is there any setting/config which is driving the multiple PO creation based on either schedule line category or the account assignment category setup in the schedule line category?
    Please advice...
    Thanks,
    KSB

    Any ideas?

  • Please send me fm regarding to get purchase order and change purchase order

    Hi,
    Please send me fm regarding to get purchase order and change purchase order .
    Regards,
    Gurprit Bhatia

    Hi,
    Function module to get the purchase order details:
    BAPI_PO_GETDETAIL.
    data: po_items type table of bapiekpo with header line.
    parameters: p_ebeln type ekko-ebeln.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
      PO_HEADER                        =
      PO_ADDRESS                       =
    tables
      PO_HEADER_TEXTS                  =
       po_items                         = po_items
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
    check sy-subrc  = 0.
    loop at po_items.
      write:/ po_items.
    endloop.
    Check this program too:
    RFFMFG_INV_CANC_ALL for BAPi_PO_GET_DETAIL.
    Hope it helps you.
    Regards,
    Anjali

  • MRP, more than planned order in one purchase ru00E9quisition.

    Hello, friends
    I have a problem with the MRP system that, we want to collect or convert more than planned order into one purchase requisition.
    Regards.

    Lamier,
    Purchase requisitions typically are never seen by Suppliers.  They are internal documents to be managed by people in your  own company.
    There are several ways to manage your business requirement.  Many companies use purchasing scheduling agreements, and some companies will automatically send the schedules to the Vendor.   Refer to  http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee0f7455c811d189900000e8322d00/frameset.htm  Other companies will select all of the approved/released purchase requisitions and copy them into a single Purchase order, which is then transmitted to the vendor using standard methods.  Review this and other tips in http://help.sap.com/saphelp_erp60_sp/helpdata/en/75/ee11d955c811d189900000e8322d00/frameset.htm
    For businesses where standard ERP functionality is inadequate, It is also possible to create custom development that will meet any business requirement.
    If you are unsatisfied with the standard functionality offerings available in SAP ERP, you should contact Walldorf.  Alternatively, SAP generally listens to the larger user groups, such as ASUG here in the US. I imagine that Algeria also is covered by a similar group.  If enough people in the user groups ask for the same functionality, SAP is more likely to place it into future offerings.
    http://www.asug.com/
    Best Regards,
    DB49

  • LOGIC FOR CREATING Purchase Order FOR repective Purchase Requisiton URGENT

    hi all,
    guys i have got all the purchase requisition for the materials  from EBAN table.
    now i have to create the PURCHASE ORDER  for these PURCHASE REQUISITIONS.
    so how should i proceed.
    what logic i should use to create the PO for These PR.
    if anyone of u have any code regd this requirement then plz share it with me.
    its very urgent, i have to deliver it by today evening.
    plz help me .
    i will award ur efforts.
    Thanks
    Sanjeev

    hi,
    Automatic Conversion of PR to PO
    You created purchase requisition for various material. During creation of purchase order you used the following path:
    Purchase Requisition
    .......Follow on function 
    .........Create Purchase Order
    ............automatic via purReq. 
    When you mentioned required purchase requisition number and execute, system give error that purchase requisition does not contain any suitable item. 
    Is there any setting in customization where you can monitor and use that function.
    In an effort for you to successfully use the Transaction Code ME59 to automatically convert the current PR into PO, then the following criteria should be met: 
    1) In the Purchasing View of the material master data, the "Autom. PO" field must be clicked; 
    2) In the Purchasing View of the Vendor Master Data, the "Automatic Purchase Order" field must be clicked; 
    3) The Outline Agreement or Purchasing Info Record shall be maintained which will allow the automatic copying of unit price and other conditions into PO; 
    4) The Source List shall be maintained for the nominated vendor which was shown in either the Outline Agreement or Purchasing Info Record. 
    or 
    it might be PR subject to release strategy and not yet released
    or 
    If you're not using a source list or automatic creation of PO, you may need to assign the requisition to a purchase information record using transaction ME56. Then it should appear in ME58. 
    reward points to helpful answers.
    rgds

  • Purchase Reqs created through work orders

    Currently when I attach a non-stock item into a work order it create a purchase req. The purchase req is automatically released, or is released when the work order is. The problem is that we have a release strategy that we must follow here at my company. When the Reg is automatically release it does not follow this strategy.
    Is there a way that i could turn off this functionality, and have those req follow our standard release strategy.

    Hello!
    If you don't want to convert PR into PO, then why you are creating it. There can be two cases:
    1. You want to create PR but don't want the material right now. In that case change the delivery date. 
    2. You don't want to do anything now. You want material after 6 months, only you want is to create a maintenanc eorder. In
    that case you can enter the material nad service on ly at the time of requirement.
    You can talk to MM consultant also you can put control this by release strategy also.
    Is there any other case that you are facing. Please discuss.
    - Vaibhav Mishra

  • Locating Planned order from a  purchase requisition

    Hi Gurus ,
    A purchase requisition has been created manually , by converting a planned order . Is it possible to find out the planned order , from a purchase requisition   Pls advise.

    Hi
    Once planned order converted in to Production order or Purchase requisition, we can't see any details of the planned order.Planned orders are stored dynamically in tables.once it is  coverted,Details can not be seen even in PLAF-Plan order table.
    In production order, you can see the planned order number but for PR , it is difficult to get the reference Plan order number.
    Regards
    Ramakrishna

  • Subcontract Production order generates wrong Purchase requisition

    Hi,
    My users are creating subcon Production Orders with the CO01 t-code, and they reported to me that the Purchase requisition generated by the production order is of a different number range, thus they are unable to convert these PR into Purchase orders.
    My company uses different document types and different number ranges for each of their different subsidiaries.
    May i know where can i go to assign or change the Production order to pick the correct PR document type and number range?
    Thank you.

    Hi all,
    Apparently I'm unable to amend the setting at OPJP because the change will affect the Production Order and Purchase requisition from another plant.
    Is there a manual method for production order to generate purchase requisition instead of automatic generation?
    Perhaps by the manual way, the users are able to choose which PR document type to generate from the production order?
    Please advise.
    Thank you very much.

  • Production order that generate purchase requisition

    Hi!
    I  need to now from where in SPRO I set the purchase requisition type that the system generate when I use MD02 transaction. The thing is that the system generates an NB type, and I would like to generate an PURE type. Can this be done?How?
    Also, when I use MD04, and try to convert a purchase requisition (type NB) in purchase order, the system generates an NB Purchase order and not an PUOR Purchase order. Can this be changed, as the system generate a PUOR Purchase order instead of NB, and if yes, where?
    Thanks

    Hello,
    For MRP to create a certain requisition document type, try assigning this to the MRP group for the material in OMDT, so in "doc.type purchase requisitions for standard purchase ord" enter the type you want. Assign the MRP group to the materials appropriate.
    Then for a PO type you need to configure settings in MM>Purchaing>PO-->Define document types. Here, for the PO document type assign the correct link to purchase req, meaning only the PO type you want can created from the reqs.
    Hope that helps.
    Thanks.

  • Combining multiple planned orders into single purchase requisition

    Hi Gurus,
    could anyone please tell me how to convert multiple planned orders generated during MRP run into a single purchase requisition? Also, is there any other way of getting single purchase requisition fcreated after MRP run for a procured item which is part of multiple BOMs?
    Thanks and regards,
    Abhik

    Hi,
    Conversion of Multiple planned order to single Purchase requisition is not possible.
    But you can have a single Pur.Req for Multiple requirements.
    You can do this by:
    1. Individual/collective indicator "2" collective requirements for the Header Material so that you will get your dependent requirements clubbed together.
    2. Period Lot sizing : Daily/weekly/monthly Lot size so that system will club the entire period requirements and propose a single lot.
    3. for low value materials you can have Reorder Point planning also.
    Hope this helps..
    Regards,
    Siva

  • Purchase items report for sales orders - very important

    Hi Folks,
    Could you please guide me on how to create a report of "items purchased" for a particular "sales order". if i am able to include various fields of items purchased, like....quantity, item description, vendor name, item price, etc., it will be very useful.
    This report is required for a client, who assembles machines in a "make to order" scenario, and most of the BOM child items are "purchase items".

    Hello Krishna,
    Few things to note:
    Is the PO created from the SO.  Is YES, then you could use the base document ref at the POR1 table.
    OR
    Are the BOM components defined with a default vendor in the Item Master and if YES are the components always purchased from the same vendor.
    I am trying to see how to establish the relationship of the items between the PO and SO.
    Please give me the details and I could guide you further
    Thanks
    Suda

Maybe you are looking for

  • 7.36 warning

    help

  • SOAP Scenario

    Hi, My Scenario is SOAP to Idoc Scenario in which when i trigger the SOAP message from SOAP UI i am getting error in SXMB_MONI as Error: Copy Sender from Payload: Sender is missing in Payload. Can any one through some inputs over this error .. regard

  • How to see non archived documents

    Hi, Due to the business rules defined on our system, we are unable to archive some of the documents even though they crossed the retention period time on the system. Hence i would like to see / identify those documents on the system i.e., wants to id

  • Subreport - how to make it print text if no results returned in subreport

    Hi, I'm using Crystal XI. In my subreport, if the report returns zero records I would like it to display one set of text (ex: No records found), but if it finds records to display another set of text (ex: 5 records found). I create and display a form

  • Import sent email

    My old hard drive is failing and I setting setting up a new HD. I'm unable to find or import any of my old sent email, let-a-lone the mail boxes that they were organized into. Because old HD is failing I only have limited access to it. Where is the "