Quantity field to be shown on 1ST line only for purchase order items in ALV
Dear All,
I am fetching data from purchase order history table (EKBE) where PO line items contains multiple times. User does not want to view fields that are repeating multiple times in all lines, but in the top line. By sorting the same in ALV , I can do the same with character type fields, but how to do the same with quantity fields. One way out is converting the same into character fields. Is there any other way. Please give me some solution. Also while sorting , the number which gets repeated (i.e Items in PO for different PO's ) does not gets displayed. I want my program to display them.
Thanks,
Debopriyo Mallick
Try this
loop at ist_mseg into wa_mseg.
ON CHANGE OF wa_mseg-con.
move '111' to wa_mseg-con1.
modify ist_mseg from wa_mseg.
ENDON.
endloop.
loop at ist_mseg into wa_mseg.
if wa_mseg-con1 ne '111'.
move 0 to wa_mseg-menge.
move 0 to wa_mseg-netpr.
endif.
modify ist_mseg from wa_mseg.
endloop.
mseg-con is the concatenation of ebeln and ebelp values.
pk
Similar Messages
-
Expand Table Control with Fields for Purchase Order Item Overview
Hi Gurus.
Hereu2019s something easy for you, I hope/ think. We just want to additionally show the field u201CMFRPNu201D in the purchase order item overview. See structure MEPO1211 for the table control.
How can we do this? Is it possible without a modification? Is there anything to pay attention to?
Lot's of questions, because we donu2019t find any complete solutions yet. It seems there are no official SAP suggestions for this issue.
Thanks in advance!
Regards
PatricIs there no one out there who can answer my question?
-
Need a field for purchase order quantity
We need a field that is fixed once the PO is created and is never updated even if the qty is changed later on.
Hi Chandra
Not clear with your query...
Are you looking for a field to act as a constant where you can store the PO Item Quantity which was initially created???
If so, not really sure on the reason but you can get the orginal qty value from Change Documents.
OBJECTID for Purchase Orders is <b>EINKBELEG</b>.
Kind Regards
Eswar -
Table name for purchase order delivery fields
Hi Gurus,
Can you please tell me the name of the tables and the joining condition for purchase order delivery details like Name, street , city, postal code, address detail and the joining condition?
Regards
MD. SAMYHi MD. SAMY,
1. Table EKPO has details lat line item level.
2. You must make a simple ABAP program in the infosets (or functional area) that contain a line "addrnumber = ekpo-adrnr" while addrnumber is ADRC table field.
3. Choose fields that you want in ADRC and put it into new fields (e.g. : DELI_NAME2 = adrc-name2., etc)
4. The new field attribute must be maintained in the infosets (in EXSTRA).
5. Now in the query you have those fields.
Regards,
Sameer -
ATP,confirm quantity for Purchase Order related Sales Order
Hi everybody,
I have purchase requisition related sales order item. I created purchase order with this PR.
I entry confirmation date and quantity on the PO.
Sales order item's delivery date equal to purchase order item's confirmation date.
Sales order item's confirmed quantity eq purchase order item's confirmed quantity. It is ok for me.
But, goods receipt not do yet for this purchase order and sales order stock = 0.
If I run VL10N for this sales order, I can create delivery.
I wants to see availilable sales order stock item on the VL10N items. How can I see?
or
If no goods receipt for sales order items then sales order item confirmed quantity can equal 0. How can I do?
Best regards
Gulay CelikHi
You can meet your requirement in multiple ways
1) Modify the requirement routine for copy control from Sales order to Delivery that DO not create the delivery for third party orders unless the GR is posted for the respective sales order.
2) IF you have implementded Inbound Delivey functionality in your system, You can change the availabiltity situation every time you modify the GR dates and times. Modify the PO user exit that when ever a new confirmation Key LA is entered in the purchase order it goes and updates the schdule line dates and quantities in the order based on the dates entered in the LA confirmation key.
and even if delivey gets created also what is the problem ? The GI cannot be posted though unlsess there is sufficient stock. -
Rounding value for purchase order quantity
Hi Guru ,
i need help for logic LOT SIZE MRP.
In particolar i need of use the parameters of rounding for create the planned order multiple of the value.
Example for a requirement of 3800 pz whit a value rounding of 500 i vould want that the system create a planned order of the 4000pz.
I have tried insert this value 500 in the field "Rounding value for purchase order quantity" in the view MRP1 but after run MRP the system create a planned order of the same quantity of the requirement.
Thanks a lot for help
Daniele
PP TEAMDear,
OMI4, for lot size select Lot for lot order qty with rounding.
Either you can use the Rounding Value or you can use a Rounding profile in MRP2 view to round of your order qty and rouding value in MRP1 view.
Further you can check
Check FM MD_ROUNDING_VALUE
Regards,
R.Brahmankar -
Purchase Order item customer fields
I have the following scenario:
- I need to save some customer fields in Purchase Order item, when it is generated through the Shopping Cart (EBP).
- When EBP will generate a PO in backend (R/3), it calls B470_PO_CREATE function module and inside it calls BAPI_PO_CREATE1 in R/3. This call does not use extensionin parameter.
- I have all the values in PO_ITEMS parameters. (an append structure in bapi_mepoitem).
- Trying to solve this, I think I have to use EXIT_SAPL2012_001 to create the extensionin parameter.
- Anyone else has this problem?
- How can I create the extensionin parameter? Is it only necessary to add 'BAPI_TE_MEPOITEM' and 'BAPI_TE_MEPOITEMX'?
- Do you have an example?
Thank you!Hi
You have to extend CI_EKPODBX with the same fieldnames with type BAPIUPDATE (in SE11), and then while passing the EXTENSIONIN to the bapi, you have to flag those. Like the following:
DATA: wa_extensionin TYPE BAPIPAREX,
wa_BAPIPAREX TYPE BAPIPAREX,
wa_BAPI_TE_MEPOITEM TYPE BAPI_TE_MEPOITEM,
wa_BAPI_TE_MEPOITEMX TYPE BAPI_TE_MEPOITEMX.
wa_BAPI_TE_MEPOITEM-po_item = <PO Line No.>.
wa_BAPI_TE_MEPOITEM-ZZZ_FIELD1 = <z-field value>.
wa_BAPIPAREX-STRUCTURE = 'BAPI_TE_MEPOITEM'.
wa_BAPIPAREX-VALUEPART1 = wa_BAPI_TE_MEPOITEM.
APPEND wa_BAPIPAREX TO extensionin.
wa_BAPI_TE_MEPOITEMX-po_item = <PO Line No.>.
wa_BAPI_TE_MEPOITEMX-ZZZ_FIELD1 = 'X'.
wa_BAPIPAREX-STRUCTURE = 'BAPI_TE_MEPOITEMX'.
wa_BAPIPAREX-VALUEPART1 = wa_BAPI_TE_MEPOITEMX.
APPEND wa_BAPIPAREX TO extensionin.
This will work. Please let me know if it does not.
See related links ->
Re: BAPI_PO_CREATE1 and EXTENSIONIN structure
Re: Passing custom fields to BAPI
Problem in populating userfields in PO using BAPI_PO_CREATE1
Re: BAPI_PO_CHANGE
Yann i need ur help..
Re: Custom field values are not being transfered to the backend system
Problem in populating userfields in PO using BAPI_PO_CREATE1
Re: Implement ME_PROCESS_PO_CUST-Urgently!
Re: Purchase Order (BAPI_PO_CREATE! --> EXTENSIONIN)
Re: How to use BAPI extensions?
Re: BAPI_PO_CREATE1 user fields not saving on EKPO
BAPI_PO_CREATE1 - EXIT_SAPL2012_001
Do let me know.
Regards
- Atul -
How to implement Change pointers for Purchase order - ME22N - Custom Fields
Hi Experts,
Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
Everything is working fine according to my requirement.
All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
1.How to implement change pointers for custom fields.
2.Can we maintain - Change Document - for custom fields at data element level?
P.S. - I have browsed many previous - forums before posting a new discussion.
please share your inputs...
explaining how to create/implement - change pointers for custom fields will help me .
Regards,
Karthik Rali.Hi,
To maintain Change Document for custom field:
1. Check if "Change document" checkbox is set in data element.
2. Find Change Document Object for transaction.
You can use SQL trace - ST05.
Look there for line with table CDHDR and statement insert values
(for example for transaction KA02 Change Document Object is KSTAR)
3. Regenerate update program for this Change Document Object in transaction SCDO
Change documents for z-fields schould be generated.
I am not sure about change pointers but they are configured somehow in BD61 and BD50. -
The long text for purchase order text field in mm03
Hi,
Please provide me long text for purchase order field.in mm03 the view purchase order text having the long text for purchase order.this is enter when ever your creating the material.but we have table and field name for that and also how to handle this long text.please provide me urgently.
Thanks & Regards,
Radhakrishna.Hi,
A sample code for ur requirement.
TABLES : ekko, "Purchasing Document Header
ekpo, "Purchasing Document Item
thead. "SAPscript: Text Header
DATA: t_theads LIKE stxh OCCURS 0 WITH HEADER LINE.
DATA: t_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: v_ebeln_ebelp(15) TYPE c.
TYPES: BEGIN OF t_download,
ebeln LIKE ekko-ebeln,
ebelp LIKE ekpo-ebelp,
tdobject LIKE stxh-tdobject,
tdid LIKE stxh-tdid,
tdspras LIKE stxh-tdspras,
count(4) TYPE c,
tdformat LIKE tline-tdformat,
tdline LIKE tline-tdline,
END OF t_download.
TYPES: BEGIN OF t_header,
line1(20) TYPE c,
line2(20) TYPE c,
line3(20) TYPE c,
line4(10) TYPE c,
line5(10) TYPE c,
line6(10) TYPE c,
line7(10) TYPE c,
line8(10) TYPE c,
END OF t_header.
DATA: g_filename TYPE string.
DATA: gt_header TYPE STANDARD TABLE OF t_header.
DATA: gs_header TYPE t_header.
DATA: gt_download TYPE STANDARD TABLE OF t_download.
DATA: gs_download TYPE t_download,
gt_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: v_subrc TYPE subrc.
DATA: v_nb_lines TYPE i.
DATA: v_ok TYPE i.
DATA: v_ko TYPE i.
DATA: v_ow TYPE i.
DATA: p_fname TYPE string.
DATA: g_append.
SELECTION SCREEN *
SELECT-OPTIONS : s_ebeln FOR ekko-ebeln.
PARAMETERS:
p_filedn(132) TYPE c OBLIGATORY,
p_file(132) TYPE c OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filedn.
PERFORM file_f4_get CHANGING p_filedn.
START-OF-SELECTION.
*Select all the purchase order corresponding to select criteria
CLEAR t_theads. REFRESH t_theads.
SELECT *
FROM ekko
WHERE ebeln IN s_ebeln.
*Select all the text for P.O. header
SELECT * FROM stxh
APPENDING TABLE t_theads
WHERE tdobject = 'EKKO'
AND tdname = ekko-ebeln.
*Select Item of each P.O.
SELECT *
FROM ekpo
WHERE ebeln = ekko-ebeln.
CONCATENATE ekpo-ebeln ekpo-ebelp
INTO v_ebeln_ebelp.
*Select the text for P.O. item.
SELECT * FROM stxh
APPENDING TABLE t_theads
WHERE tdobject = 'EKPO'
AND tdname = v_ebeln_ebelp.
ENDSELECT. "select ekpo
ENDSELECT. "select ekko
DESCRIBE TABLE t_theads LINES v_nb_lines.
LOOP AT t_theads.
Read the text from pool
CLEAR thead.
REFRESH t_tlines.
CALL FUNCTION 'READ_TEXT' "#EC *
EXPORTING
id = t_theads-tdid
language = t_theads-tdspras
name = t_theads-tdname
object = t_theads-tdobject
IMPORTING
header = thead
TABLES
lines = t_tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
MOVE-CORRESPONDING thead TO gs_download.
gs_download-ebeln = thead-tdname+0(10).
IF thead-tdobject = 'EKPO'.
gs_download-ebelp = thead-tdname+10(5).
ENDIF.
gs_download-count = 0.
LOOP AT gt_tlines.
gs_download-tdformat = gt_tlines-tdformat.
gs_download-tdline = gt_tlines-tdline.
gs_download-count = gs_download-count + 1.
APPEND gs_download TO gt_download.
ENDLOOP.
CLEAR gs_download.
ENDLOOP.
END-OF-SELECTION.
Hope this helps.
please reward points if useful.
Regards
rose -
Returns line in a purchase order
Hello all,
I am working in a GI for return to vendor and i was instructed to create a returns line in a purchase order number. i would like to know how to create a returns line in a PO.
Thanks,
MaxxIn PO, when you want to create a Return, just tick the "Return" indicator in Item overview tab.
-
Create additional field in sales order item and copy to purchase order item
Dear SAP Gurus,
I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
Can you please advise how I would go about implementing the above requirements? I am assuming that there are exits to allow me to implement these 2 requirements.
Many thanks
HenryHi,
For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
Regards,
Eduardo -
User Exit for Purchase Order Line Items.
I have been trying to search for a User Exit for Purchase Order Line Items and have been unable to do find anything. I need to overwrite the Net Price and Pricing Condition on a certain type of material based upon the Pricing Condition for that Line Item which is on the Sales Document. Any direction you can point me into would be greatly appreciated. Thanks.
Thanks for pointing me in the right direction. I was able to create my first BADI using the PROCESS_ITEM method. The following link was also very helpful: Re: BADI ME_PROCESS_PO_CUST Method:PROCESS_ITEM
-
i am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me. aftwer 100ms it has to go to zero state
hi,
You can try generating 5V continously for 100ms in a loop later on you can make it low.
Hope this helps you. -
Batch Field in the purchase order item level confirmation tab
Hello Friends,
Can anybody tell me the significance of Batch field in the Confirmation tab of a purchase order item level?
Can we make this field editable?
Thanks,
BhairavCan anybody tell me the significance of Batch field in the Confirmation tab of a purchase order item level?
Batch field can be populated via inbound delivery, when you receive the confirmation from vendor you can create inbound delivey using VL31N that time you can enter the batch or if oyu receive the confirmation via EDI, in this Idoc you can receive the batch from vendor
eventually this batch number you will see the the PO confirmation tab
Can we make this field editable
No, this is dependent on the inbound delivery document -
Error Purchase order item 00010 still contains faulty schedule lines
Hi All,
when reprocessing an inbound IDOC for PO i am getting these errors
1) Purchase order item 00010 still contains faulty schedule lines and
2) No instance of object type PurchaseOrder has been created. External refer.
This error is getting during inbound processing and the status sets to 51.
please help me in solving this
Thanks,
Hari kishoreThat ID in Return table is the Message Class of the message you get in return line (check in transaction SE91).
You can build the text as this:
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = return-id
msgnr = return-number
msgv1 = return-message_v1
msgv2 = return-message_v2
msgv3 = return-message_v3
msgv4 = return-message_v4
IMPORTING
message_text_output = built_msg_text
EXCEPTIONS
OTHERS = 1.
As for the message itself, i don't know what it may be.
Read Schedule lines parameter documentation in SE37, maybe there you have a clue.
Regards
Please reward points if helpful
Maybe you are looking for
-
I want to find the vendor balance as from fbl1n?
Hi all, I am preparing a report where I need to get the vendor balance till date, for a particular employee, as I see in t-code fbl1n. Can anyone specify how can i get that in my report , where it is stored??? Also I checked out t-code pc00_m40_term,
-
ITunes for Windows 7 64-bit, help please!
When I'm trying to install iTunes I get this error message: http://img401.imageshack.us/img401/2561/errorix.png I have been googeling for hours straight and I'm getting frustreated, I've tried SO MANY different things... Please help!? Thanks in advan
-
Double Publishing - 2X the space?
I am missing a key principle here that I someone can set me straight on... If I already have photos published at gallery.mac.com BUT want to also create some photo pages on my iweb site, am I eating up 2x times the space since it appears I am publish
-
Why isn't the legend of korra book 3 available on iTunes
Does anyone know why the legend of korra book 3 is not available in the U.S. iTunes store????
-
I can't watch WWDC session videos
I'm trying to watch videos from past WWDC, but I can't get past the sign in screen. As soon as I type in my password and press the "Sign In" button, Safari will take me right back to the sign in screen. The sign in page will recognize if the password