How to delete E1EDP19 002 segment frm the inbound ORDERS IDoc?
Hi ABAP/EDI experts,
I am implementing an User exit related to inbound Sales order EXIT_SAPLVEDA_001.
Most of the time my IDocs contain the below segments.
E1EDP19 001 (QUALF = '001')
E1EDP19 002 (QUALF = '002')
Sometimes, IDoc contain only E1EDP19 001 (QUALF = '001') segment.
My problem is whenever i have two E1EDP19 segments, i want to delete the 1st E1EDP19 segment and retain the second E1EDP19 segment.
Can anyone tell me the pseudocode for deleting the 1st E1EDP19 segment from the inbound orders IDoc.
Am i using the correct user exit??
Thanks,
Creasy Matt
Edited by: Creasy Matthew on Jan 22, 2009 12:56 AM
Hi Matt,
You can loop on idoc_data internal table. This table will be having all the data and the segments.
data: l_count type i value 0,
l_tabix type sy-tabix.
LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
CASE idoc_data-segnam.
WHEN e1edp19.
l_tabix = sy-tabix.
l_count = l_count + 1.
if l_count = 2.
l_tabix = l_tabix -1.
delete idoc_data index l_tabix.
endif.
ENDCASE.
ENDLOOP.
I hope this will work.
Please let me know if any issues.
Similar Messages
-
How to delete a line item from the sales order
Hi all,
how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
Regards
KumarHi
U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
This is called short close ( as the qty is not delivered fully).
Thx. -
Placing delivery block on the inbound Orders IDoc (SO Process)
Hi EDI Gurus,
I have a small question.
I know we can set a delivery block using E1EDK01-LIFSK.
But I check a base UOM @ item level. If it is not allowable, then I should place a delivery block.
I am using user exit EXIT_SAPLVEDA_001.
But how can I set a delivery block @ header level with information available @ item level.
Say:
case zedidd-segnam.
when 'E1EDK01'
XXXXXXXXXXXXX
when 'E1EDP01'.
ze1edp01 = zedidd-sdata.
zint-vbap = zxvbap
zint-vbak = zxvbap.
if ze1edp01-MENEE ne 'EA'.
place delivery block
endif.
How can I do this.
Can anyone throw some light. Even code/field help will be helpful.
Thanks,
MattThrow some light Gurus
-
How to delete a local file in the presentation server.
Hi All,
How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
Thanks in advance.
Regards,
Vishaldata: l_rc type i.
data: f_name type string.
move 'c:\YourFile.txt' to f_name.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
EXPORTING
FILENAME = f_name
CHANGING
RC = l_rc
EXCEPTIONS
FILE_DELETE_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
FILE_NOT_FOUND = 4
ACCESS_DENIED = 5
UNKNOWN_ERROR = 6
NOT_SUPPORTED_BY_GUI = 7
WRONG_PARAMETER = 8
others = 9
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
PI 7.1 How to delete a published service from the service registry?
Hello,
I have the same problem in the pi 7.1, like Rahul in CE (Composition Environment) with the deleting of published services.
How to delete a published service from the service registry?
In the WS navigator I found only this operation:
deleteClassificationSystemValues and deleteClassificationSystem
I miss the operation deleteService.
Have you an idea?
Bye
StefanHi all,
I have opened an oss message and now I have an answer:
Use this Service: ServicesRegistrySiService and the operation deleteServices with the logical key of the service as parameter.
The logical key can be seen from the SR UI in the details of the endpoints.
Bye
Stefan -
How can delete my iphone5 data from the date its restored?
how can delete my iphone5 data from the date its restored?
it's unclear what you mean
if you wish to remove your iphone5 data you connect it to iTunes on the computer and click the restore button and choose restore to factory defect -
How to delete unreleased transport request where the objects are locked
Hi Experts,
I was created a transport request, but I am facing some probelms with taht request, now I want to delete transport request. I tried to delete them in SE10, I am getting message that the objects are locked. Please tell me how to delete unreleased transport requests where the objects belong to this transport request are locked.Hi,
First go to transaction se03 Choose "Unlock Objects (Expert Tool)" option under "Requests/Tasks" and unlock your task,
Than go to se10 and delete what you want.
I hope it helps.
Bulent -
does anyone know how to delete songs that came with the iPhone 6 in the music?? i tried deleting them from iTunes but i couldn't.
I know you already solved this but for future reference, there is also another setting to only keep songs downloaded to your device visible in music.
Go to Settings --> Music --> Show All Music and make sure it is turned off -
How to delete an old network from the list on the iPad?
Anyone know how to delete an old network from the listing and then add a new one? I did it when I first got my iPad and cannot remember how I did it! Hey, I'm an Apple rookie but I am trying. Take care and thanks in advance for any help.
Setting > General > Reset > Network Reset
-
How to delete 100+ released requests from the import queue?
Hello
How to delete 100+ released requests from the import queue?
One by one or there is more convinient way?
ThanksTo delete multiple non-imported transport requests, you do the following while in the import queue on STMS:
1) Highlight the status field of the import queue.
2) Sort the import queue by the status.
3) Put your cursor on the first non-imported transport, right-click, and click on Select Block.
4) Scroll down and put your cursor on the last non-imported transport, right-click and click on Select Block. This will highlight all requests from the first one selection to the last one selected.
5) Go to menu option Request > Delete.
If all of the requests in the import queue haven't been imported (no imported, including failed import, requests), you can jump to Steps 3-5. -
How to delete a contact group on the iPhone?
Hello!
I've been searching for a way to delete a contact group on the iPhone, but I was not able to find one. The only answers I have found tried to tell me that it is not possible to do this on the iPhone. But I can hardly believe that the people at Apple would be so stupid not to include such a thing, as there are iPhone users who do not own a computer. How should they manage their contacts?
So, would someone please be so kind and tell me how to delete a contact group on the device?
TIA,
JanAnd, it's an even bigger shame that you let your customers do your work in the forum here. I expected to have an Apple employee read and answer the messages.
You should have read the terms of use for these discussions, which you were provided and had to agree with when registering here and you would not have expected this here.
http://discussions.apple.com/help.jspa#discuss
What is Apple Discussions and how can it help me?
*Apple Discussions is a user-to-user support forum* where experts and other Apple product users get together to discuss Apple products. You'll find a wealth of information about your favorite Apple hardware and software products that will help you get the most out of your purchase. You can participate in discussions about various products and topics, find solutions to help you resolve issues, ask questions, get tips and advice, and more.
If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages.
If you want direct support from Apple, check this link for the phone number.
http://support.apple.com/kb/HE57 -
How to track the Inbound child IDOcs in PI 7.4 Single stack
Hi Friends,
I would like to know the procedure of tracking the Inbound child IDocs in PI 7.4 Single stack.
Here is the detailed description.
Say we are getting the data from third party system and the message may have multiple IDOcs in it. The message has processed successfully from PI and reached to the target system(ERP). So, now my question is how to track the IDOc count with in that message.
Please suggest on the same.
Thanks in Advance,
Venkateswarlu.Hi Hareesh,
Thanks for your inputs. According to the link IDOC Status, Tracking in SAP PI/PO Single Stack I am thinking the required funcionality is not there in PO 7.4, but still i would like to have little more clarity before moving further.
I will explain what what was happening in PI 7.11 so that you can understand what i am looking for in PO 7.4.
We will get the data from third party system in xml format, we had to search for the messages based on interface name and time range within SXMB_MONI. After getting the result(say the output is 100 messages), we will download the values of "Outbound Reference" field(which is a key to find the child messages for messages resulting in an Interface Collection). Below is the snap of Outbound Reference field for your reference.
Now we will go to the table IDXRCVPOR in SE16(within PI) and put the values of Outbound Reference field in Text 24 and execute. Here we will get all the child messages.
Now please let me know if this kind of scenario is possible in PO 7.4.
Thanks,
Venkat. -
How to get know the Sales Order IDOC#, if I know the created Sales Order#?
Hi Experts,
Let me know that, How to get know the IODC #, if I know the Sales Order#?
Scenario is that, sales order(say 12345678) was created from Inbound EDI. I also Know the MATERIAL too.
So, How to pull the associated Inbound ORDERS idoc, which is created this Sales order-12345678?
Is it from EDID4 table? or EDIDC? or any thing else?
reples r appreciated.
thanq
Edited by: SAP ABAPer on Sep 8, 2008 5:29 AMHello
This can be done much easier using fm SREL_GET_NEXT_NEIGHBORS:
Input:
OBJECT-OBJKEY = <number of sales order> " with leading zeros!!!
OBJECT-OBJTYPE = 'BUS2032'
MAX_HOPS = '01'
Result:
NEIGHBORS-OBJKEY = <IDoc number with leading zeros>
NEIGHBORS-OBJTYPE = 'IDOC'
NEIGHBORS-ROLETYPE = 'INIDOC'.
Regards
Uwe -
How to place a delivery block at line item level from Inbound ORDERS IDoc?
Hi EDI/ABAP Experts,
Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
Thanks,
Matt .Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
CALL CUSTOMER-FUNCTION '001'
EXPORTING SEGMENT = IDOC_DATA
DVTCOMAG = VTCOMAG
DXMESCOD = IDOC_CONTRL-MESCOD
CONTRL = IDOC_CONTRL
TABLES DXBDCDATA = BDCDATA
DXVBAP = XVBAP
DXVBEP = XVBEP
DYVBEP = YVBEP
DXVBADR = XVBADR
DYVBADR = YVBADR
DXVBPA = XVBPA
DXVBUV = XVBUV
DD_FLAG_P = D_FLAG_P
DXKOMV = XKOMV
DXVEKP = XVEKP
DYVEKP = YVEKP
CHANGING DXVBAK = XVBAK
DD_FLAG_K = D_FLAG_K
EXCEPTIONS
USER_ERROR = 01.
If you are in ECC6.0 you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U -
Which table stored the Inbound ASN IDOC # and corresponding In.B Delivery#
Hi,
May i know which table stored the inbound ASN IDOC# and corresponding created Inbound Delivery number??
Thanks!!Dear Hoo Laa,
You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
Regards
Samier Danish
Maybe you are looking for
-
Looking for a better solution that tunnel interface
Hi acctualy I have a Vsat connection between my remote site and central office on both site we have router and sat modem I have now a tunnel interface between my two routers,I am looking for a better idea,,
-
I would like to copy my iPhoto (9.4.1) library from my Mac Pro (10.7.5) to a Macbook Pro (10.7.5). Can I drag the iPhoto Library from the Pictures folder to Air Drop and send them to the MacBook? If I then move that to the Pictures folder on the MacB
-
Add source file name to output table
Hi, I am trying to pull data from Azure blob to On Premises SQL Database. I have emp file that have three columns (Id, FirstName, LastName) and SQL table has five columns (Id, Firstname, LastName, SourceFileName, Lastmodifieddatetime). Is there any w
-
Satellite 2430 XP Boot Problem
Windows XP won't load on my Satellite 2430-402 laptop saying that the C:\Windows\System32\config\system file is missing or corrupted and to try running the repair option. I have 2 Toshiba Recovery CD's from which I have managed to run the DOS-based r
-
I was updating in order to get iCloud and Bump so I could transfer my data to my new iphone 5. My old phone was acting like it was a new phone and wanting me to set it up. I had to update itunes on my pc also. My data is not there either. I pulled up