Creating Segment for a zIdoc
Hi All,
I want to create a segment in an Idoc. Shall I create database structure after creating the SEGMENT structure? First of all I want to create all the Segment structures and then I want to create structures in SE11.
Please let me know shall I create Segment before I create actual database structure?
Thanks in Advance,
Ramana
Why do you want to create a database structure, once you created the segment with the fields, you can always define internal tables and structures by just refering to the segment name.
e.g..
Segment Z_SEGMENT1
DATA: lt_itab type table of Z_SEGMENT1.
DATA: ls_wa type Z_SEGMENT1.
Hope that helps,
Michael
Similar Messages
-
How to define a campaign contact segment for primary contacts only?
Hi,
I have tested the functionality of segmentation wizard, but I cannot identify, how primary contacts of an account can be selected? I was wondering, is is only possible to create segments for ALL contacts of an account. Isnt it usually the primary account you contact in your campaign only?
Cheers,
MichaelUnder Contact field Setup, there is a field called "Primary" of type checkbox. If this is checked it indicates that this person is the primary contact for the account.
However this field is not available under the segmentation wizard (possibly because it is type Boolean or some other reason I do not know of).
One possible solution may be that you create a Custom field called "Primary Status" or somethign similar and then write a workflow with the condtion that if Primary Checkbox = Y then it populates the custom field with some default value and if N then no values.
Then if that field is available under the segmentation wizard then use that as your filter for you primary contacts.
Hope it helps.
Gaurav -
Creating BADI for datasource enhancement in CRM.
Hi,
I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
Thanks in advance
MoumitaHi Prasad Reddy,
This are the available badis and exits for this t.code:
Enhancement/ Business Add-in Description
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD
BADI_MATERIAL_CHECK Enhanced checks for material master table
BADI_GTIN_VARIANT
BADI_EAN_SYSTEMATIC
o.of Exits: 3
o.of BADis: 11
Find the Exact exits and badis for ur requirement.
How to fine the exact badi:
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any
transaction
Rgds,
P.Naganjana Reddy
if you follow this 7 steps, you will find a suitable BADI. -
Need IDOC and segment for mappping the sales order number
Hi,
we need the IDOC name and segment for mapping the sales order number created by oracle in sap for transaction VA01.
Whether the sales order number created by Oracle can be used to create the sales order in sap using the idoc ACC_SALES_ORDER01?
. If we can do,then what is the segment and field for the sales order number in the idoc ?
Please reply asap it's very urgent
Thanks
Edited by: suresh kumar nandhagopal on May 16, 2008 12:07 PMHi,
IDOC for sales order is ORDERS05. Segment E1EDKA1, for field go to SE11 and enter E1EDKA1 to find field for sales order.
Cheers.
...Reward if useful. -
Hello Friends,
I am creating IDOC for purchase order and the message class is orders01 and orders04
Everything looks good for orders01. But for the same PO for message type orders04 some of the segments do not appear.
The segmants containing the text for the item does not appear.
E1EDKT1 and E1EDKT2.
Whats the reason for this.
Any Suggestions,
Thanks in Advance.Hi,
Both IDOCs orders01 and orders04 have segments E1EDKT1 and E1EDKT2. In fact orders04 has some more segments as it is higher version of idoc than orders01.
Can you try one more thing? Create a new PO with text and first time create a IDOC ORDERS04 and then change the same PO and create a IDOC of type ORDERS01. Let me know if still you do not get the text on first IDOC ( orders04 ) and get it on second IDOC ( orders01). As far as i know, there is not difference between these two IDOCs. ( when you say message class orders01 and orders04, i think you mean IDOC orders01 and orders04 ).
If still you have a issue then debug the code. The FM is <b>IDOC_OUTPUT_ORDERS</b>. These segments are filled in <b>PERFORM FUELLEN_IDOC_INTTAB</b>. ( include <b>LEINMF11</b> ). Here search for 'E1EDKT1, you will get it on around line <b>647 ( perform fill_e1edkt1 ).</b>
If you look at the code above, you will see that the routine for populating E1EDKT1 and E1EDKT2 only triggers if couple IF conditions meet. Here it read data from <b>internal table XT166k</b> ( database <b>table T166K</b> ) and there some other conditions too.
Debug you code here and see why text is not getting populated. You will get your answer.
Let me know if you have any question.
Regards,
RS -
Hi ,
i created new custom defined ZIDOC , ZMESSAGE TYPE and .. but for adding that in Pratenr profile inbound side.. it was asking the <b>PROCESS CODE</b>..
So , for Zmessage types how can we find that Process code.. and if we need to create that process code.. means where can we create that ..
Thanks
BabuHi
Steps for Inbound process code:
1. Create the inbound FM
Tcode SE37.
Copy any standard inbound FM like IDOC_INPUT_MATMAS01.
2. Maintain The Attributes of Inbound FM
Tcode BD51.
3. Assign the Message type to FM
Tcode WE57.
4. Create the Process Code
Tcode WE42.
5. Now this process code can be assigned in Partner profiles.
<b>REWARD IF HELPFUL.</b> -
Hi friends ,
I am new to idoc's. I was trying to create a basic idoc . I went to /we31 transaction and entered the name and the fields .When i try to save . It gives an error message the "data element is not active" .can u please tell how do i activate it so that i can go to next step .
thank youHi,
Here is the general steps to create segments. Check the following steps.
Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
- Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
- Click on Create new and enter a description and press enter.
- Click on ZIDOCTYPE01 and then on the Create icon.
- Enter ZIDOCTYPE as the segment type, click on Segment Editor.
- Enter a description for your segment type and create.
- Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
- Save and generate, press back
- To release the segment choose Goto, Release from the menu.
- Check the box on the line of your segment.
- Save, back and enter.
- Your Idoc type structure should be displayed with your new segment.
- Save and back.
- To release the Idoc type choose Extras, Release type from the menu and Yes.
Thanks,
Naga -
How to create IDOC for customer defined table
hi,
How to create IDOC for customer defined table Records and how to send this IDOC to target system.
what message type will be used and on receiving system how to post these records.
thankx.
pillac.Hi,
You need to create a custom message type and custom IDOC type for this with whatever fields you want send. You need to create segments (WE30), IDOC type (WE30), Message types (WE81) and assign the message type to the IDOC type (WE82).
You will have trigger the IDOC using a Report or something after doing the partner profile settings.
Similary in the target system also, you will have do all the settings.
Take a look the links to find out what settings needs to be done.
http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
http://www.sappro.com/downloads/OneClientDistribution.pdf
Regards,
Ravi
Note : Please mark the helpful answers and close the thread if the issue is resolved. -
Recomended configurations for creating video for the web
I'm working on a project creating video segments for the web (no plans for broadcast of DVD) and I'm looking for opinions on the most efficient way to use FCP to do this. We are shooting with an HD camera with a green screen and composting a couple of additional layers of Motion graphics and we found that the render times were really long. I'm looking for ways to mitigate this, on thing we did was switch from shooting in 1080p to 720p. We also tried shooting at 24fps instead of the broadcast 60fps and that cut our render time by a good percentage. Since the final product is going to be 640 by 360 at 15fps it seems like a good trade off but are there any down sides I'm not thinking of.
I was also wondering if there might be an advantage to working at the size of the final product, if the FCP sequence were 640 by 360 would there be any advantages in terms of render times and what might the disadvantages would be.
This is my first semi-professional project, just been a hobbyist up until now so any advice is appreciated.MoSaT wrote:
We are shooting with an HD camera with a green screen and composting a couple of additional layers of Motion graphics and we found that the render times were really long. I'm looking for ways to mitigate this, on thing we did was switch from shooting in 1080p to 720p. We also tried shooting at 24fps instead of the broadcast 60fps and that cut our render time by a good percentage.
those simple steps reduced the number of pixels in each frame from about a million to 750,00, about 25%; and you reduced the number of frames from 30 or 60 to 24 or 48. So, yeah, your rendering times are going down. If your Motion project has ten HD layers you're saving tons of processing.
MoSaT wrote:
This is my first semi-professional project, just been a hobbyist up until now so any advice is appreciated.
Since the final product is going to be 640 by 360 at 15fps it seems like a good trade off but are there any down sides I'm not thinking of.
Absolutely. But you engaged the project without knowing how you were going to accomplish anything; implies your plans for improving workflow will be similarly incomplete. We all got by with NTSC and plan ol' DV for decades. The web is a low end distribution system, not a theatrical viewing experience. You can force your viewers to download a huge file and watch it on their TVs or you can open it up in weensy teeny window on their iPhones.
MoSaT wrote:
I was also wondering if there might be an advantage to working at the size of the final product, if the FCP sequence were 640 by 360 would there be any advantages in terms of render times and what might the disadvantages would be.
Purists will be correct in telling you better source footage results in better uploads. I will tell you that's true but it's academic. Your realworld needs are based on your web upload, not your plans to archive high def footage for future exploitation.
Here's what I'd do: Work backwards. Figure out what your upload needs are--exactly. Research Compressor and other compression systems to determine how you are going to process your project to get the target output. Now decide what format that software wants to process to create the best results. then figure out how you want to provide that input for the compression application. then figure out what the tradeoffs are for your original footage in terms of your camera resources, your skills with the camera, and your mistaken impression that effects and chromakey should be fast.
bogiesan -
Determining new segments for an idoc.
hi guys,
i have to map data on an idoc. the problem is that in the idoc there can be header and item segments. using an element referred as Id , i must be able to create a new segment for the idoc.
can anyone please help me.
thanks in advanceHi,
You can use CreateIf Node function to create the segments based on the condition.
<Condition>-CreateIf NodeFuction--<Node of the target segment>.
The target segment will be created only if the condition is true.
See the below link for more details.
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Regards,
Shweta -
Error:cannot use system rollback segment for non-system tablespace
Hi,
I have created a oracle database 10.2.0 on fedora 9 system. I have created a user and assigned the default tablespace SATYA and given the permissions. But when I create a table in the user I am getting the following error.
Can anyone help me in rectifying this error.
ORA-01552: cannot use system rollback segment for non-system tablespace 'SATYA'
thankyou
satyaUndo management is either AUTO or Manual, no local
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm#sthref1469
Since you are using 10g, you are recommended to use Auto undo management
If you still plan to use manual undo management, make sure you have other non-system rollback segment in place. -
Creating Includes for Function Modules
Hi Experts,
Can you please let me know how to create includes for function modules.
I came across this in a standard include program, which was generated by a function library. The includes inside this program where linked to the function modules (when I double clicked on them).
Please let me know how to create it.
Thanks in advance !
Regards,
Anand Patil.Hi,
have a look at the code for better understanding
Declaration of Workareas *
DATA: lwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create,
lwa_data TYPE edidd, " Work area for IDOC
lwa_control TYPE edidc. " Work Area for control rec
Read the control data information of idoc.
loop at idoc_contrl INTO lwa_control Where mestyp = lc_mbgmcr.
Extract the data from the segments.
LOOP AT idoc_data INTO lwa_data
WHERE docnum = lwa_control-docnum and
segnam = lc_item_create.
*->> Set the tabix of the internal table
lv_index = sy-tabix.
Move the Material Document Item Segment data
MOVE lwa_data-sdata TO lwa_e1bp2017_gm_item_create.
Modify the material document item data internal table
PERFORM sub_modify_idocdata changing lwa_e1bp2017_gm_item_create.
*->> set the changed values to the IDOC SDATA
MOVE lwa_e1bp2017_gm_item_create TO lwa_data-sdata.
*->> Modify the table
MODIFY idoc_data FROM lwa_data index lv_index.
Clear the Work areas
CLEAR : lwa_data,
lwa_e1bp2017_gm_item_create.
ENDLOOP. "LOOP AT t_idoc_data
Call the BAPI function module to create the
appropriate Material Document
CALL FUNCTION 'BAPI_IDOC_INPUT1'
EXPORTING
input_method = input_method
mass_processing = mass_processing
IMPORTING
workflow_result = workflow_result
application_variable = application_variable
in_update_task = in_update_task
call_transaction_done = call_transaction_done
TABLES
idoc_contrl = idoc_contrl
idoc_data = idoc_data
idoc_status = idoc_status
return_variables = return_variables
serialization_info = serialization_info
EXCEPTIONS
wrong_function_called = 1
OTHERS = 2.
IF sy-subrc = 1.
RAISE wrong_function_called.
ENDIF.
endloop.
ENDFUNCTION.
here when we write the statment
PERFORM sub_modify_idocdata changing lwa_e1bp2017_gm_item_create and double click on sub_modify_idocdata .
it will create a include with the name "LZDTSINT052F_GPOMS_GMF01 ".
now we can write the FORM ..END FORM In this inculde.like this.
***INCLUDE LZDTSINT052F_GPOMS_GMF01 .
*& Form sub_modify_idocdata
Modify the material document item data internal table
FORM sub_modify_idocdata
CHANGING pwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create.
contant declaration
CONSTANTS: lc_261(3) TYPE c VALUE '261'.
DATA : lv_aplzl LIKE resb-aplzl,
lv_aufpl LIKE resb-aufpl,
lv_subrc LIKE sy-subrc,
lv_charg LIKE resb-charg,
lv_uom LIKE pwa_e1bp2017_gm_item_create-entry_uom.
CLEAR: pwa_e1bp2017_gm_item_create-reserv_no,
pwa_e1bp2017_gm_item_create-res_item.
*->> Get SAP storage bin & Storage type from the Z table
SELECT lgtyp lgpla
INTO (pwa_e1bp2017_gm_item_create-stge_type,
pwa_e1bp2017_gm_item_create-stge_bin)
UP TO 1 ROWS
FROM zdtsint050_sttyp
WHERE zstorage_typ = pwa_e1bp2017_gm_item_create-stge_type
AND zstorage_bin = pwa_e1bp2017_gm_item_create-stge_bin.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR: pwa_e1bp2017_gm_item_create-stge_type,
pwa_e1bp2017_gm_item_create-stge_bin.
ENDIF.
PERFORM get_oper CHANGING pwa_e1bp2017_gm_item_create.
Get the Reservation number and Reservation item number
basing on the idoc data.
SELECT rspos werks lgort
INTO (pwa_e1bp2017_gm_item_create-res_item,
pwa_e1bp2017_gm_item_create-plant,
pwa_e1bp2017_gm_item_create-stge_loc)
FROM resb
UP TO 1 ROWS
WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
AND matnr = pwa_e1bp2017_gm_item_create-material
AND charg = pwa_e1bp2017_gm_item_create-batch
AND aufnr = pwa_e1bp2017_gm_item_create-orderid
AND vornr = pwa_e1bp2017_gm_item_create-activity
AND bwart = lc_261.
ENDSELECT.
IF sy-subrc <> 0.
Start of insertion for R31K993797
CLEAR lv_charg.
SELECT rspos werks lgort
INTO (pwa_e1bp2017_gm_item_create-res_item,
pwa_e1bp2017_gm_item_create-plant,
pwa_e1bp2017_gm_item_create-stge_loc)
FROM resb
UP TO 1 ROWS
WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
AND matnr = pwa_e1bp2017_gm_item_create-material
AND charg = lv_charg
AND aufnr = pwa_e1bp2017_gm_item_create-orderid
AND vornr = pwa_e1bp2017_gm_item_create-activity
AND ( splkz = 'X' or
splkz = space )
AND bwart = lc_261.
ENDSELECT.
IF sy-subrc <> 0.
End of insertion for R31K993797
SELECT SINGLE werks lgort
INTO (pwa_e1bp2017_gm_item_create-plant,
pwa_e1bp2017_gm_item_create-stge_loc)
FROM resb
WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no.
CLEAR : pwa_e1bp2017_gm_item_create-reserv_no,
pwa_e1bp2017_gm_item_create-res_item.
ENDIF.
ENDIF.
get SAP UOM
SELECT SINGLE zsap_uom
INTO lv_uom
FROM zca_uom_conv
WHERE zext_uom = pwa_e1bp2017_gm_item_create-entry_uom.
IF sy-subrc = 0.
pwa_e1bp2017_gm_item_create-entry_uom = lv_uom.
ENDIF.
ENDFORM. " sub_modify_idocdata
*& Form get_oper
Get the operation
<--P_PWA_E1BP2017_GM_ITEM_CREATE_RE Segment
FORM get_oper CHANGING p_pwa_e1bp2017_gm_item_create TYPE
e1bp2017_gm_item_create.
DATA : l_aufpl LIKE afko-aufpl,
l_aplzl LIKE afvc-aplzl.
REFRESH : i_op.
UNPACK p_pwa_e1bp2017_gm_item_create-orderid TO
p_pwa_e1bp2017_gm_item_create-orderid.
Get the reservation and routing number for the order
SELECT SINGLE
rsnum
aufpl
FROM afko
INTO (p_pwa_e1bp2017_gm_item_create-reserv_no,
l_aufpl)
WHERE aufnr = p_pwa_e1bp2017_gm_item_create-orderid.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_NUMCV_INPUT'
EXPORTING
input = p_pwa_e1bp2017_gm_item_create-activity
IMPORTING
output = p_pwa_e1bp2017_gm_item_create-activity.
ENDIF.
ENDFORM. " get_oper
Regards,
nagaraj -
Read Combination segments for material account from item level
Dear Value Consultant,
Read Combination segments for material account from item level
"For any inventory transactions"
Is there is away to read the material account from item level , to affect the real combination segments not general combinations segments from item master or organization
Business Impacts :
All inventory transaction for all item will affect the same combination segments for material accounts
After I transfer to GL, This not helps me to differentiate the balance for material value is related to any item category
Also for Budget Wise , I want to map the budget on combination level for materials accounts , and this not actualize without affect the real combination for material accounts in subledger ,
ThanksI have not seen any client asking for this, but you can consider Costing Hooks to create your own accounting engine for inventory transactions. Hope you are taalking about standard costing. In such case, costing hooks are available in Oracle for you to write your own accounting.
Even better in R12, you can do this with setup in SLA.
Thanks
Nagamohan -
Creating IDOC for article using BD10 tcode
Hi Excperts,
we are creating idoc for the articles using bd10 tcode.
we are using idoc type ARTMAS05. But system not filling the segment E1BPE1MLEART Retail Data Transfer: Vendor-Specific EANs . Could you anyone help me , why sap standard program is dropping this segment.
do we need set up any data in material master for his segment. .
you will be rewarded.
Regards
Rama.Hi Rama,
Generally if the segment is not being filled it is because the values do not exist.
The segment is not mandatory. So your IDoc should still be created.
Try:
By selecting the Send material in full indicator, you can also distribute the following dependent data for the material (depending on the type of system) in addition to the actual material master data:
Retail system
Listing conditions
Purchasing info records
Source list records
Purchasing conditions
Sales conditions
BOM allocations
Best regards,
Glynn -
Rollback segment for set transaction
there is way that i can setup a rollback segment for a spacific user or specific transction.
ALTER ROLLBACK SEGMENT big_rbs ONLINE;
SET TRANSACTION USE ROLLBACK SEGMENT big_rbs;
sql .....
commit;
ALTER ROLLBACK SEGMENT big_rbs OFFLINE;
the sql is going for about hour, i was woundering during that time can some else use this rollback segment. i just want this rbs to this user, how i can do that.
thanksI guess i didn't clearify well. let say i created a rbs for specific tranction. before this transaction is start it will turn on this rbs and once this transaction is completed, it issue the command commit, and bring it back to this rbs offline. the question is durning this transaction does any other transaction can come and use this rbs instead of we have lot of other rbs.
I hope that you get my point.
Maybe you are looking for
-
That's great I can see my iCloud calendar in Outlook, but I can't see my Outlook calendar in iCloud. Any ideas on this one? I don't want to copy the calendar into iCloud, because they wouldn't be in sync. How do I view my Outlook calendar in iCloud s
-
No longer able to access i-tunes Store?
Since updating to latest i-tunes version - I am unable to access i-tunes store. I've checked my 'firewall' and itunes is 'enabled', on running a check in i-tunes the following was noted; Connection attempt to Apple web site was successful. Connection
-
JSF design view - visual components are shrinking
Hello, I have some strange issue while using Design view for JSF and data binding. Once I drop any data control elements into visual component (panel, etc) my visual components are shrinking to such size, that I cannot distinguish any elements within
-
I have a 32 bit computer, is there any way I can get Ae?
The title says it all, I downloaded a template for this and I cant get Ae. Can I change it to a .blend or something? Or can I get ae somehow. Sorry if this is the wrong section, I am new.
-
Cost Center assignment to Work Center(CRCO)
Hi Experts, I was updating Costing data to Work center. I used standard LSMW 0260, 0000, RCRAPDX2, D., but i am getting error as 'Work Center already exists' since i am updating Costing seperately after loading Work Center. Please help me in updating